Include Windows-specific files in tarball even when MANIFEST.in does not include them.

parent 8c893ea5
......@@ -188,7 +188,9 @@ def upload_to_pypi():
cmd.extend([
'upload_docs', '-r', PACKAGE_INDEX
])
subprocess.check_call(cmd)
env = os.environ.copy()
env["SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES"] = "1"
subprocess.check_call(cmd, env=env)
def has_sphinx():
try:
......
......@@ -121,7 +121,7 @@ readme_file.close()
changes_file.close()
package_data = {'setuptools': ['site-patch.py']}
if sys.platform == 'win32':
if sys.platform == 'win32' or os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES") not in (None, "", "0"):
package_data.setdefault('setuptools', []).extend(['*.exe'])
package_data.setdefault('setuptools.command', []).extend(['*.xml'])
......
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