Permalink
Browse files

MAINT: setup.py: enable Cython generation for sdist in released versions

  • Loading branch information...
1 parent 275e105 commit c0124923b246eb3a78bab270338014e5c938b794 @pv pv committed Mar 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 setup.py
View
@@ -220,7 +220,7 @@ def setup_package():
else:
from numpy.distutils.core import setup
- if not ISRELEASED:
+ if not ISRELEASED or 'sdist' in sys.argv[1:]:
# Generate Cython sources
generate_cython()

4 comments on commit c012492

Owner

rgommers replied Mar 24, 2013

Hmm, this was not the only problem. You still can't checkout a release tag in a repo and install it. I don't see a clean solution yet.

Owner

pv replied Mar 24, 2013

Perhaps it should be some flag that is turned on only in sdist tarballs? Not sure how to do this properly...

Owner

rgommers replied Mar 24, 2013

The best I can think of is to add something to the release scripts to modify setup.py inside the tarballs after they're written. But that's not very robust to changes in setup.py

Owner

rgommers replied Mar 26, 2013

Checking for presence of a PKG-INFO file would probably work.

Please sign in to comment.