Skip to content

Instantly share code, notes, and snippets.

@dctrwatson
Created August 11, 2012 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dctrwatson/3321907 to your computer and use it in GitHub Desktop.
Save dctrwatson/3321907 to your computer and use it in GitHub Desktop.
Detect pip in setup.py
try:
using_pip = replacement_run
except NameError:
try:
import numpy
except ImportError:
call("pip install numpy==1.6.2", shell=True)
@benmcnelly
Copy link

This is the worst setup snippet ever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment