Skip to content

Commit

Permalink
ENH: restore 'develop' mode install
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux committed Jul 24, 2012
1 parent bebe5de commit 73b7663
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@

from numpy.distutils.core import setup

###############################################################################
# Optional setuptools features

# For some commands, use setuptools
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
'build_sphinx', 'egg_info', 'easy_install', 'upload',
)).intersection(sys.argv)) > 0:
from setupegg import extra_setuptools_args

# extra_setuptools_args is injected by the setupegg.py script, for
# running the setup with setuptools.
if not 'extra_setuptools_args' in globals():
extra_setuptools_args = dict()

def configuration(parent_package='', top_path=None):
if os.path.exists('MANIFEST'):
Expand Down Expand Up @@ -93,5 +107,5 @@ def configuration(parent_package='', top_path=None):
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
]
)
],
**extra_setuptools_args)

0 comments on commit 73b7663

Please sign in to comment.