Remove outdated distutils fallback
Modern Python environments have setuptools or pip installed. The
distutils fallback is unnecessary.
#!/usr/bin/env python
import os
import sys
+from setuptools import setup
+from setuptools.command.test import test as TestCommand
from redis import __version__
-try:
- from setuptools import setup
- from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
@@ -20,12 +19,6 @@ try:
errno = pytest.main(self.test_args)
sys.exit(errno)
-except ImportError:
-
- from distutils.core import setup
-
- def PyTest(x):
- x
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
long_description = f.read()
