Permalink
Browse files

Fix svn revision parsing under win32.

  • Loading branch information...
cournape committed Sep 18, 2009
1 parent 599b0f1 commit 5032b52732b2e8e6d60be09646d65bf0051a3161
Showing with 4 additions and 3 deletions.
  1. +4 −3 setup.py
View
@@ -59,9 +59,10 @@ def svn_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
- path = os.environ.get('PATH')
- if path is not None:
- env['PATH'] = path
+ for k in ['SYSTEMROOT', 'PATH']:
+ v = os.environ.get(k)
+ if v is not None:
+ env[k] = v
# LANGUAGE is used on win32
env['LANGUAGE'] = 'C'
env['LANG'] = 'C'

0 comments on commit 5032b52

Please sign in to comment.