summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/bdist_rpm.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2007-08-08 22:31:50 +0000
committerRobert Kern <robert.kern@gmail.com>2007-08-08 22:31:50 +0000
commit5da18aa76edac59ce485ff9bc03620b76118ddeb (patch)
tree29f807d75a1b9125f2878afb15dbbc20455e3af8 /numpy/distutils/command/bdist_rpm.py
parentad48c03011ce4395cf8e8c7d38f54bc418830774 (diff)
downloadnumpy-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.py5
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):