Skip to content

Commit 7a1f773

Browse files
committed
Add pyporject.toml file to specify build-system requirements
As of v10 of `pip` PEP 518 is supported. This allows for a `pyproject.toml` file to be created that specifies any build-system requirements that need to be installed *before* the `setup.py` file is run. This solves the issue with pip needing `cython` and `numpy` before they are installed. This has been tested with the command `pip install .` in clean python envrionments (no packages installed) in both python 3.6 and 3.7. Pip was able to install the package and all dependcies in the correct order.
1 parent 02e92ad commit 7a1f773

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"wheel",
5+
"cython",
6+
"numpy"
7+
]

0 commit comments

Comments
 (0)