Skip to content

Commit

Permalink
gdstk needs to be a separate extra (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliew authored Jan 26, 2023
1 parent 63147a9 commit ebfc66b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
8 changes: 7 additions & 1 deletion doc/Hammer-Basics/Hammer-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ You can install Hammer from PyPI:
pip install hammer-vlsi
```

If you are using ASAP7, you need to install hammer-vlsi with the asap7 extra dependency (gdstk).
If you are using ASAP7, you need to install hammer-vlsi with the asap7 extra dependency (gdspy or gdstk). By default, gdspy is installed:

```shell
pip install hammer-vlsi[asap7]
```

If instead, you want to install gdstk:

```shell
pip install hammer-vlsi[asap7-gdstk]
```

After installation, verify that you can run the `hammer-vlsi` script from the command line.

```shell
Expand Down
25 changes: 17 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ gdstk = { version = "^0.9.0", optional = true }
gdspy = { version = "1.4", optional = true }

[tool.poetry.extras]
# asap7 = ["gdstk"]
asap7-gdstk = ["gdstk"]
asap7 = ["gdspy"]

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit ebfc66b

Please sign in to comment.