Skip to content

Commit ed00731

Browse files
committed
Reverting change to setup.py to allow egg_info without scikit_build
The "setup_requires" parameter does not always work properly to install scikit_build before compiling SimpleITK. We are reverting to checking if the required scikit_build package is installed and producing a instructional error message if it is not available.
1 parent 437bb75 commit ed00731

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
try:
44
from skbuild import setup
55
except ImportError:
6-
try:
7-
from setuptools import setup
8-
except ImportError:
9-
print('setuptools or scikit-build is required to build from source.', file=sys.stderr)
10-
print('Please run:\n', file=sys.stderr)
11-
print(' python -m pip install setuptools')
12-
sys.exit(1)
13-
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)
1411

1512

1613
setup(
@@ -46,6 +43,5 @@
4643
keywords='ITK InsightToolkit segmentation registration image',
4744
url=r'http://simpleitk.org/',
4845
install_requires=[],
49-
setup_requires=['scikit-build>=0.5'],
5046
zip_safe=False
5147
)

0 commit comments

Comments
 (0)