Permalink
Browse files

Eric's suggestions to generalize easy_install/pip detection

  • Loading branch information...
chapmanb authored and peterjc committed Oct 14, 2011
1 parent 5b12cfd commit 4f96917a57df494c61ff402200721733d444103d
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.py
View
@@ -112,10 +112,11 @@ def get_install_requires():
dist_dir_i = None
if dist_dir_i is not None:
dist_dir = sys.argv[dist_dir_i+1]
- if dist_dir.find("egg-dist-tmp") >= 0:
+ if "egg-dist-tmp" in dist_dir:
is_automated = True
# pip -- calls from python directly with "-c"
if sys.argv in [["-c", "develop", "--no-deps"],
+ ["--no-deps", "-c", "develop"],
["-c", "egg_info"]]:
is_automated = True
if is_automated:

0 comments on commit 4f96917

Please sign in to comment.