diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-04-26 18:06:09 +0300 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2018-05-24 14:32:31 -0400 |
commit | 7392f01ffced3acfdef25b0b2d55cefdc6ee468a (patch) | |
tree | af16caf760ae204ba437d0aa7a6b862fc85bb0b2 /setuptools/command | |
parent | e078d78a439591fd7028cf80ca0b7c12ae013d4d (diff) | |
download | external_python_setuptools-7392f01ffced3acfdef25b0b2d55cefdc6ee468a.tar.gz external_python_setuptools-7392f01ffced3acfdef25b0b2d55cefdc6ee468a.tar.bz2 external_python_setuptools-7392f01ffced3acfdef25b0b2d55cefdc6ee468a.zip |
Drop support for EOL Python 3.3
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/bdist_egg.py | 2 | ||||
-rw-r--r-- | setuptools/command/build_ext.py | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py index 423b8187..14530729 100644 --- a/setuptools/command/bdist_egg.py +++ b/setuptools/command/bdist_egg.py @@ -411,7 +411,7 @@ def scan_module(egg_dir, base, name, stubs): return True # Extension module pkg = base[len(egg_dir) + 1:].replace(os.sep, '.') module = pkg + (pkg and '.' or '') + os.path.splitext(name)[0] - if sys.version_info < (3, 3): + if sys.version_info.major == 2: skip = 8 # skip magic & date elif sys.version_info < (3, 7): skip = 12 # skip magic & date & file size diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index ea97b37b..60a8a32f 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -112,7 +112,7 @@ class build_ext(_build_ext): and get_abi3_suffix() ) if use_abi3: - so_ext = _get_config_var_837('EXT_SUFFIX') + so_ext = get_config_var('EXT_SUFFIX') filename = filename[:-len(so_ext)] filename = filename + get_abi3_suffix() if isinstance(ext, Library): @@ -319,13 +319,3 @@ else: self.create_static_lib( objects, basename, output_dir, debug, target_lang ) - - -def _get_config_var_837(name): - """ - In https://github.com/pypa/setuptools/pull/837, we discovered - Python 3.3.0 exposes the extension suffix under the name 'SO'. - """ - if sys.version_info < (3, 3, 1): - name = 'SO' - return get_config_var(name) |