Mercurial > public > mercurial-scm > hg
comparison setup.py @ 32890:20fc5d39d0c1
setup: update a comment that blamed py26 for a Windows workaround
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 16 Jun 2017 21:57:22 -0400 |
parents | 19b0fd4b5570 |
children | db8531c45953 |
comparison
equal
deleted
inserted
replaced
32889:a7310a477966 | 32890:20fc5d39d0c1 |
---|---|
174 'LANGUAGE': 'C', | 174 'LANGUAGE': 'C', |
175 'PATH': ''} # make pypi modules that use os.environ['PATH'] happy | 175 'PATH': ''} # make pypi modules that use os.environ['PATH'] happy |
176 if 'LD_LIBRARY_PATH' in os.environ: | 176 if 'LD_LIBRARY_PATH' in os.environ: |
177 env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] | 177 env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH'] |
178 if 'SystemRoot' in os.environ: | 178 if 'SystemRoot' in os.environ: |
179 # Copy SystemRoot into the custom environment for Python 2.6 | 179 # SystemRoot is required by Windows to load various DLLs. See: |
180 # under Windows. Otherwise, the subprocess will fail with | 180 # https://bugs.python.org/issue13524#msg148850 |
181 # error 0xc0150004. See: http://bugs.python.org/issue3440 | |
182 env['SystemRoot'] = os.environ['SystemRoot'] | 181 env['SystemRoot'] = os.environ['SystemRoot'] |
183 | 182 |
184 if os.path.isdir('.hg'): | 183 if os.path.isdir('.hg'): |
185 cmd = [sys.executable, 'hg', 'log', '-r', '.', '--template', '{tags}\n'] | 184 cmd = [sys.executable, 'hg', 'log', '-r', '.', '--template', '{tags}\n'] |
186 numerictags = [t for t in runhg(cmd, env).split() if t[0].isdigit()] | 185 numerictags = [t for t in runhg(cmd, env).split() if t[0].isdigit()] |