Created
August 11, 2012 06:50
-
-
Save dctrwatson/3321907 to your computer and use it in GitHub Desktop.
Detect pip in setup.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
using_pip = replacement_run | |
except NameError: | |
try: | |
import numpy | |
except ImportError: | |
call("pip install numpy==1.6.2", shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the worst setup snippet ever.