summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen West <bewest@gmail.com>2015-05-14 19:48:12 -0700
committerBen West <bewest@gmail.com>2015-05-14 19:48:12 -0700
commit70fe25cf8ce9ee6917edbdff35e045ea02e84ec6 (patch)
tree8bcdc09db3f0f4091995acd12555e7d41aa0fdac
parentb2b986fc71982fcafe9e6aff66ccf9497782a63c (diff)
moe more debug again
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index b332abf..798e99f 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,8 @@ def is_virtualenv ( ):
10 proc = subprocess.Popen(['which', 'add2virtualenv'], stderr=subprocess.PIPE, stdout=subprocess.PIPE) 10 proc = subprocess.Popen(['which', 'add2virtualenv'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)
11 shell = os.path.dirname(sys.argv[0]) 11 shell = os.path.dirname(sys.argv[0])
12 has_venv = proc.poll( ) == 0 12 has_venv = proc.poll( ) == 0
13 print "shell root shares project root", shell, os.path.dirname(__file__) 13 print "shell root shares project root", shell, os.path.dirname(__filename__)
14 print 'huh', sys.argv, has_venv, os.environ, __file__
14 print 'real_prefix', getattr(sys, 'real_prefix', '??') 15 print 'real_prefix', getattr(sys, 'real_prefix', '??')
15 print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') 16 print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV')
16 return os.environ.get('VIRTUAL_ENV', has_venv) 17 return os.environ.get('VIRTUAL_ENV', has_venv)