Commits

Arfrever Frehtes Taifersar Arahesis committed 1148e20

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

  • Participants
  • Parent commits 7292c3a

Comments (0)

Files changed (2)

 
 * Rename DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT environment
   variable to SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT.
+* Issue #1: Disable installation of Windows-specific files on non-Windows systems.
 
 -----
 0.7.2
 readme_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(
     name="setuptools",
     version=VERSION,
     test_suite = 'setuptools.tests',
     src_root = src_root,
     packages = find_packages(),
-    package_data = {'setuptools':['*.exe', 'site-patch.py'], 'setuptools.command':['*.xml']},
+    package_data = package_data,
 
     py_modules = ['pkg_resources', 'easy_install'],