diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-08-08 22:31:50 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-08-08 22:31:50 +0000 |
commit | 5da18aa76edac59ce485ff9bc03620b76118ddeb (patch) | |
tree | 29f807d75a1b9125f2878afb15dbbc20455e3af8 /numpy/distutils/command/bdist_rpm.py | |
parent | ad48c03011ce4395cf8e8c7d38f54bc418830774 (diff) | |
download | numpy-5da18aa76edac59ce485ff9bc03620b76118ddeb.tar.gz |
Optionally use setuptools for commands that setuptools customizes.
Diffstat (limited to 'numpy/distutils/command/bdist_rpm.py')
-rw-r--r-- | numpy/distutils/command/bdist_rpm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/command/bdist_rpm.py b/numpy/distutils/command/bdist_rpm.py index 593dfe878..60e9b5752 100644 --- a/numpy/distutils/command/bdist_rpm.py +++ b/numpy/distutils/command/bdist_rpm.py @@ -1,6 +1,9 @@ import os import sys -from distutils.command.bdist_rpm import bdist_rpm as old_bdist_rpm +if 'setuptools' in sys.modules: + from setuptools.command.bdist_rpm import bdist_rpm as old_bdist_rpm +else: + from distutils.command.bdist_rpm import bdist_rpm as old_bdist_rpm class bdist_rpm(old_bdist_rpm): |