diff options
-rw-r--r-- | setup.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -9,10 +9,8 @@ def is_virtualenv ( ): | |||
9 | import os, os.path | 9 | import os, os.path |
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 | proc.communicate( ) | ||
12 | has_venv = proc.poll( ) == 0 | 13 | has_venv = proc.poll( ) == 0 |
13 | print "shell root shares project root", shell, os.path.dirname(__file__) | ||
14 | print 'huh', sys.argv, has_venv, os.environ, __file__ | ||
15 | print 'real_prefix', getattr(sys, 'real_prefix', '??') | ||
16 | print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') | 14 | print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') |
17 | return os.environ.get('VIRTUAL_ENV', has_venv) | 15 | return os.environ.get('VIRTUAL_ENV', has_venv) |
18 | 16 | ||
@@ -23,7 +21,7 @@ def readme(): | |||
23 | 21 | ||
24 | dataFiles = [ ] | 22 | dataFiles = [ ] |
25 | if platform.system( ) == 'Linux': | 23 | if platform.system( ) == 'Linux': |
26 | prefix = '/' | 24 | # prefix = '/' |
27 | dataFiles = [ | 25 | dataFiles = [ |
28 | (prefix + 'etc/udev/rules.d', ['etc/udev/rules.d/80-dexcom.rules']), | 26 | (prefix + 'etc/udev/rules.d', ['etc/udev/rules.d/80-dexcom.rules']), |
29 | ] | 27 | ] |