summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-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)