Skip to content

Commit

Permalink
Add rename build option
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lefkowitz committed May 1, 2024
1 parent 9c6d55c commit 80e93f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ Some scripts need access to the include paths that appear in the `SConstruct.py`
To install dependencies:

```bash
yarn install
pip install .[all]
```

Expand Down
4 changes: 3 additions & 1 deletion src/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ class Build:
output: str = "dist"
shared: bool = False

rename: str | None = None

def __repr__(self) -> str:
return self.name

@property
def target(self) -> str:
return os.path.join(self.output, self.name)
return os.path.join(self.output, self.rename if self.rename else self.name)

@property
def merge(self) -> dict[str, list[str]]:
Expand Down

0 comments on commit 80e93f1

Please sign in to comment.