mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-18 15:28:12 +00:00
express pypiwin32 dep via a setup.py extra
Previously this looked at sys.platform to decide what dependencies to include. The problem with that approach is that wheels built on a unix box won't work on windows (and vice versa), when the (pure-python) Tahoe wheels aren't supposed to be platform-dependent. setup.py provides a syntax to express this properly, so wheels created on either platform will include the pypiwin32 dependency in the metadata, but marked as only being relevant when installing on a win32 platform. closes ticket:2763
This commit is contained in:
@ -149,10 +149,6 @@ import sys
|
||||
if not hasattr(sys, 'frozen'):
|
||||
package_imports.append(('setuptools', 'setuptools'))
|
||||
|
||||
if sys.platform == "win32":
|
||||
install_requires.append('pypiwin32')
|
||||
package_imports.append(('pypiwin32', 'win32api'))
|
||||
|
||||
setup_requires = []
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user