diff options
author | Robert Collins <robertc@robertcollins.net> | 2015-03-11 10:19:19 +1300 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2015-03-11 10:21:50 +1300 |
commit | d6964198e9df8e88af3d7255144bea8dcd8b98d6 (patch) | |
tree | 46a04afb96d9b548cd21f309bc143c8017698852 /setup.py | |
parent | 83f8554c811c788aab6e4172c9ef15158223a8f8 (diff) | |
download | testtools-d6964198e9df8e88af3d7255144bea8dcd8b98d6.tar.gz |
Fix building universal wheels on Python 3.
Building a wheel on Python 3 was missing ``_compat2x.py`` needed for Python2.
This was a side effect of the fix to bug #941958, where we fixed a cosmetic
error. (Robert Collins, #1430534)
This reverts commit 56c49a5fd420143627e50e2d0ec86e1f37075875.
Change-Id: I4de72a62b5ddf7349c432165f796841a0998e878
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -2,10 +2,8 @@ """Distutils installer for testtools.""" from setuptools import setup -from distutils.command.build_py import build_py import email import os -import sys import testtools cmd_class = {} @@ -13,14 +11,6 @@ if getattr(testtools, 'TestCommand', None) is not None: cmd_class['test'] = testtools.TestCommand -class testtools_build_py(build_py): - def build_module(self, module, module_file, package): - if sys.version_info >= (3,) and module == '_compat2x': - return - return build_py.build_module(self, module, module_file, package) -cmd_class['build_py'] = testtools_build_py - - def get_version_from_pkg_info(): """Get the version from PKG-INFO file if we can.""" pkg_info_path = os.path.join(os.path.dirname(__file__), 'PKG-INFO') |