Skip to content

Commit

Permalink
setup_requires: pyproject.toml (PEP-518)
Browse files Browse the repository at this point in the history
Add a `pyproject.toml` for build system dependencies as specified in
PEP-518.

This avoids install-order issues for, e.g. the CMake dependency and
does not mark those dependencies as runtime dependencies (which they
are not).
  • Loading branch information
ax3l committed Jun 16, 2019
1 parent 46c0654 commit c0bfdfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.md COPYING COPYING.LESSER
include pyproject.toml
include requirements.txt
global-include CMakeLists.txt *.cmake *.cmake.in
recursive-include include *
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>38.6", "wheel", "cmake>=3.11.0,<4.0.0", "pybind11>=2.3.0,<3.0.0"]
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
cmake>=3.11.0,<4.0.0
pybind11>=2.3.0,<3.0.0
numpy>=1.15.0,<2.0.0
setuptools>=38.6

0 comments on commit c0bfdfd

Please sign in to comment.