|
1 | 1 | #!/usr/bin/env python
|
2 | 2 |
|
3 | 3 | import os
|
4 |
| -import sys |
5 | 4 | import textwrap
|
6 | 5 |
|
7 | 6 | import setuptools
|
|
10 | 9 | here = os.path.dirname(__file__)
|
11 | 10 |
|
12 | 11 |
|
13 |
| -package_data = { |
14 |
| - "": ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"], |
15 |
| - "setuptools": ['script (dev).tmpl', 'script.tmpl', 'site-patch.py'], |
16 |
| -} |
17 |
| - |
18 |
| -force_windows_specific_files = os.environ.get( |
19 |
| - "SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES", "1" |
20 |
| -).lower() not in ("", "0", "false", "no") |
21 |
| - |
22 |
| -include_windows_files = sys.platform == 'win32' or force_windows_specific_files |
23 |
| - |
24 |
| -if include_windows_files: |
25 |
| - package_data.setdefault('setuptools', []).extend(['*.exe']) |
26 |
| - package_data.setdefault('setuptools.command', []).extend(['*.xml']) |
27 |
| - |
28 |
| - |
29 |
| -def pypi_link(pkg_filename): |
30 |
| - """ |
31 |
| - Given the filename, including md5 fragment, construct the |
32 |
| - dependency link for PyPI. |
33 |
| - """ |
34 |
| - root = 'https://files.pythonhosted.org/packages/source' |
35 |
| - name, _sep, _rest = pkg_filename.partition('-') |
36 |
| - parts = root, name[0], name, pkg_filename |
37 |
| - return '/'.join(parts) |
38 |
| - |
39 |
| - |
40 | 12 | class install_with_pth(install):
|
41 | 13 | """
|
42 | 14 | Custom install command to install a .pth file for distutils patching.
|
@@ -84,7 +56,6 @@ def _restore_install_lib(self):
|
84 | 56 |
|
85 | 57 | setup_params = dict(
|
86 | 58 | cmdclass={'install': install_with_pth},
|
87 |
| - package_data=package_data, |
88 | 59 | )
|
89 | 60 |
|
90 | 61 | if __name__ == '__main__':
|
|
0 commit comments