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:
Brian Warner
2016-12-24 18:00:13 -05:00
parent 639cc92bcf
commit a06cf2ea4c
2 changed files with 1 additions and 4 deletions

View File

@ -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 = []