Skip to content

Commit

Permalink
Remove dead-code from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Sep 25, 2024
1 parent 3106af0 commit 38ca0b5
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python

import os
import sys
import textwrap

import setuptools
Expand All @@ -10,33 +9,6 @@
here = os.path.dirname(__file__)


package_data = {
"": ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"],
"setuptools": ['script (dev).tmpl', 'script.tmpl', 'site-patch.py'],
}

force_windows_specific_files = os.environ.get(
"SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES", "1"
).lower() not in ("", "0", "false", "no")

include_windows_files = sys.platform == 'win32' or force_windows_specific_files

if include_windows_files:
package_data.setdefault('setuptools', []).extend(['*.exe'])
package_data.setdefault('setuptools.command', []).extend(['*.xml'])


def pypi_link(pkg_filename):
"""
Given the filename, including md5 fragment, construct the
dependency link for PyPI.
"""
root = 'https://files.pythonhosted.org/packages/source'
name, sep, rest = pkg_filename.partition('-')
parts = root, name[0], name, pkg_filename
return '/'.join(parts)


class install_with_pth(install):
"""
Custom install command to install a .pth file for distutils patching.
Expand Down Expand Up @@ -84,7 +56,6 @@ def _restore_install_lib(self):

setup_params = dict(
cmdclass={'install': install_with_pth},
package_data=package_data,
)

if __name__ == '__main__':
Expand Down

0 comments on commit 38ca0b5

Please sign in to comment.