Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce93c98

Browse files
committed
Revert changes to setupext.py
1 parent c25efbd commit ce93c98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setupext.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ def check_output(*popenargs, **kwargs):
4242
return output
4343

4444

45-
try:
45+
if sys.platform != 'win32':
4646
if sys.version_info[0] < 3:
4747
from commands import getstatusoutput
4848
else:
4949
from subprocess import getstatusoutput
50-
except ImportError:
51-
pass
50+
5251

5352
if PY3:
5453
import configparser
@@ -147,7 +146,6 @@ def get_base_dirs():
147146
return options['basedirlist']
148147

149148
basedir_map = {
150-
151149
'win32': ['win32_static', ],
152150
'darwin': ['/usr/local/', '/usr', '/usr/X11',
153151
'/opt/X11', '/opt/local'],

0 commit comments

Comments
 (0)