diff options
| author | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2013-06-20 09:43:59 +0200 |
|---|---|---|
| committer | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2013-06-20 09:43:59 +0200 |
| commit | 0a15b36973a6eef7c6c71d79ac76852ad91af58f (patch) | |
| tree | 194eb39faeeb7eb4d79926f1d8c719caf7617cc0 | |
| parent | f1065225a4d5ec1721b91b1da1443fa1ec860e4e (diff) | |
| download | python-setuptools-bitbucket-0a15b36973a6eef7c6c71d79ac76852ad91af58f.tar.gz | |
Include Windows-specific files in tarball even when MANIFEST.in does not include them.
| -rw-r--r-- | release.py | 4 | ||||
| -rwxr-xr-x | setup.py | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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']) |
