Skip to content

Commit

Permalink
Merge pull request #2 from zmoon/setup
Browse files Browse the repository at this point in the history
Add pyproject.toml with setuptools ubound
  • Loading branch information
zmoon committed Aug 16, 2022
2 parents 75c7935 + 3b8b2f8 commit 931585e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ Python Wrapper around Robert J. Renka's [TSPACK](http:https://www.netlib.no/netlib/tom

If you are lucky,
```
pip install https://github.com/noaa-oar-arl/pytspack/archive/master.zip --no-deps
pip install https://github.com/noaa-oar-arl/pytspack/archive/master.zip
```
will *just work* (you must first have `numpy` installed).
will *just work*.

Alternatively, if the above [^b] fails, try
```
pip install https://github.com/noaa-oar-arl/pytspack/archive/master.zip --no-use-pep517 --no-deps
```
(you must already have `numpy` installed and currently must have `setuptools` earlier than v65).

Otherwise, you can clone the repo and try to build the extension module
using [`f2py`](https://numpy.org/doc/stable/f2py/index.html) manually...


[^b]: [Build-time dependency specification](https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#build-time-dependencies) via `pyproject.toml` file.

### Windows

On Windows, with a [GNU Fortran via MSYS2](https://numpy.org/doc/stable/f2py/windows/msys2.html)
Expand Down Expand Up @@ -44,7 +53,7 @@ setup, try the following:

3. Link pytspack to your active Python environment.
```powershell
pip install -e .
pip install -e . --no-use-pep517
```

### Linux
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools<65", "wheel", "numpy"]

0 comments on commit 931585e

Please sign in to comment.