Skip to content

Commit c3f486f

Browse files
authored
Merge pull request #4659 from pelson/feature/dead-code-removal
Remove dead-code from setup.py
2 parents e7e35eb + ad31d6d commit c3f486f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

setup.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22

33
import os
4-
import sys
54
import textwrap
65

76
import setuptools
@@ -10,33 +9,6 @@
109
here = os.path.dirname(__file__)
1110

1211

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-
4012
class install_with_pth(install):
4113
"""
4214
Custom install command to install a .pth file for distutils patching.
@@ -84,7 +56,6 @@ def _restore_install_lib(self):
8456

8557
setup_params = dict(
8658
cmdclass={'install': install_with_pth},
87-
package_data=package_data,
8859
)
8960

9061
if __name__ == '__main__':

0 commit comments

Comments
 (0)