Skip to content

Commit 9a8fe49

Browse files
committed
Add pyproject.toml for build dependencies
Following PEP 518 so that scikit-build can be automatically downloaded when trying to build from an sdist.
1 parent 02854ba commit 9a8fe49

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["scikit-build >= 0.11", "wheel", "cmake", "ninja"]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scikit-build==0.5.0
1+
scikit-build>=0.11

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
from __future__ import print_function
22
from os import sys
3-
try:
4-
from skbuild import setup
5-
except ImportError:
6-
print('scikit-build is required to build from source.', file=sys.stderr)
7-
print('Please run:', file=sys.stderr)
8-
print('', file=sys.stderr)
9-
print(' python -m pip install scikit-build')
10-
sys.exit(1)
3+
from skbuild import setup
114

125

136
setup(

0 commit comments

Comments
 (0)