Skip to content

Commit

Permalink
setup.py: do not import setuptools for sdist command - fixes release …
Browse files Browse the repository at this point in the history
…tarball
  • Loading branch information
rc committed May 10, 2016
1 parent a1ccf27 commit 48829a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ def check_versions(show_only=False):
show_only=show_only)

def setup_package():
# Import setuptools to find a C compiler on windows.
import setuptools; setuptools
if not 'sdist' in sys.argv[1:]:
# Import setuptools to find a C compiler on windows.
import setuptools; setuptools

from numpy.distutils.core import setup

old_path = os.getcwd()
Expand Down

0 comments on commit 48829a4

Please sign in to comment.