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/sdist.py | |
parent | ad48c03011ce4395cf8e8c7d38f54bc418830774 (diff) | |
download | numpy-5da18aa76edac59ce485ff9bc03620b76118ddeb.tar.gz |
Optionally use setuptools for commands that setuptools customizes.
Diffstat (limited to 'numpy/distutils/command/sdist.py')
-rw-r--r-- | numpy/distutils/command/sdist.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/distutils/command/sdist.py b/numpy/distutils/command/sdist.py index 9134fed53..62fce9574 100644 --- a/numpy/distutils/command/sdist.py +++ b/numpy/distutils/command/sdist.py @@ -1,4 +1,9 @@ -from distutils.command.sdist import sdist as old_sdist +import sys +if 'setuptools' in sys.modules: + from setuptools.command.sdist import sdist as old_sdist +else: + from distutils.command.sdist import sdist as old_sdist + from numpy.distutils.misc_util import get_data_files class sdist(old_sdist): |