Commits

Arfrever Frehtes Taifersar Arahesis  committed 3757c10

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

  • Participants
  • Parent commits a28af30

Comments (0)

Files changed (2)

 		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:
 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'])