Issue #1: Disable installation of Windows-specific files on non-Windows systems.

parent 91054c5e
...@@ -8,6 +8,7 @@ CHANGES ...@@ -8,6 +8,7 @@ CHANGES
* Rename DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT environment * Rename DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT environment
variable to SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT. variable to SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT.
* Issue #1: Disable installation of Windows-specific files on non-Windows systems.
----- -----
0.7.2 0.7.2
......
...@@ -118,6 +118,11 @@ long_description = readme_file.read() + '\n' + changes_file.read() ...@@ -118,6 +118,11 @@ long_description = readme_file.read() + '\n' + changes_file.read()
readme_file.close() readme_file.close()
changes_file.close() changes_file.close()
package_data = {'setuptools': ['site-patch.py']}
if sys.platform == 'win32':
package_data.setdefault('setuptools', []).extend(['*.exe'])
package_data.setdefault('setuptools.command', []).extend(['*.xml'])
dist = setup( dist = setup(
name="setuptools", name="setuptools",
version=VERSION, version=VERSION,
...@@ -132,7 +137,7 @@ dist = setup( ...@@ -132,7 +137,7 @@ dist = setup(
test_suite = 'setuptools.tests', test_suite = 'setuptools.tests',
src_root = src_root, src_root = src_root,
packages = find_packages(), packages = find_packages(),
package_data = {'setuptools':['*.exe', 'site-patch.py'], 'setuptools.command':['*.xml']}, package_data = package_data,
py_modules = ['pkg_resources', 'easy_install'], py_modules = ['pkg_resources', 'easy_install'],
......
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