Skip to content

Commit

Permalink
Issue #1: Disable installation of Windows-specific files on non-Windo…
Browse files Browse the repository at this point in the history
…ws systems.
  • Loading branch information
Arfrever committed Jun 12, 2013
1 parent 91054c5 commit 0dfd776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -8,6 +8,7 @@ CHANGES

* 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
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Expand Up @@ -118,6 +118,11 @@ def run(self):
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,
Expand All @@ -132,7 +137,7 @@ def run(self):
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'],

Expand Down

0 comments on commit 0dfd776

Please sign in to comment.