Commit 520a12d7 authored by Bohumír Zámečník's avatar Bohumír Zámečník Committed by Yuxin Wu

Prevent install python-prctl outside Linux when installing by wheel (#1148). (#1151)

When tensorpack was installed by wheel the platform was already evaluated
and thus python-prctl was installed, even though it is Linux-specific.
Installing from source package or sources was OK.

Instead use a platform specifier that is evaluated while installing the wheel.
parent 400a07e6
......@@ -56,8 +56,8 @@ setup(
],
tests_require=['flake8', 'scikit-image'],
extras_require={
'all': ['pillow', 'scipy', 'h5py', 'lmdb>=0.92', 'matplotlib', 'scikit-learn'] +
['python-prctl'] if platform.system() == 'Linux' else [],
'all': ['pillow', 'scipy', 'h5py', 'lmdb>=0.92', 'matplotlib', 'scikit-learn'],
'all: "Linux" in sys_platform': ['python-prctl'],
'all: python_version < "3.0"': ['tornado'],
},
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment