diff options
author | Robert Collins <robertc@robertcollins.net> | 2013-01-22 07:26:24 +1300 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2013-01-22 07:26:24 +1300 |
commit | 42e03ed5204c430079b9059e47fb52cfc3a1a2b3 (patch) | |
tree | 270408217c2c323d3ccb5e35b0dfbd49b375d9b7 /setup.py | |
parent | e0cfd656b7d1931bbd4d0e524948540c36471150 (diff) | |
download | python-test-extras-42e03ed5204c430079b9059e47fb52cfc3a1a2b3.tar.gz |
Handle older testtools versions that are missing TestCommand.0.0.3
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,11 +1,11 @@ #!/usr/bin/env python """Distutils installer for extras.""" -from distutils.core import setup +from setuptools import setup import os.path import extras -testtools = extras.try_import('testtools') +testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): @@ -23,8 +23,8 @@ def get_long_description(): cmdclass = {} -if testtools is not None: - cmdclass['test'] = testtools.TestCommand +if testtools_cmd is not None: + cmdclass['test'] = testtools_cmd setup(name='extras', |