Kaydet (Commit) 91f0e346 authored tarafından Tarek Ziade's avatar Tarek Ziade

fixed the way the cfg file markers values are split under win32

üst ec9b76d2
...@@ -21,7 +21,8 @@ def _pop_values(values_dct, key): ...@@ -21,7 +21,8 @@ def _pop_values(values_dct, key):
if not vals_str: if not vals_str:
return return
fields = [] fields = []
for field in vals_str.split(os.linesep): # the line separator is \n for setup.cfg files
for field in vals_str.split('\n'):
tmp_vals = field.split('--') tmp_vals = field.split('--')
if len(tmp_vals) == 2 and not interpret(tmp_vals[1]): if len(tmp_vals) == 2 and not interpret(tmp_vals[1]):
continue continue
......
...@@ -307,7 +307,7 @@ class ConfigTestCase(support.TempdirManager, ...@@ -307,7 +307,7 @@ class ConfigTestCase(support.TempdirManager,
['/usr/include/gecode', '/usr/include/blitz']) ['/usr/include/gecode', '/usr/include/blitz'])
cargs = ['-fPIC', '-O2'] cargs = ['-fPIC', '-O2']
if sys.platform == 'win32': if sys.platform == 'win32':
cargs.append("/DGECODE_VERSION='win32'") cargs.append("/DGECODE_VERSION=win32")
else: else:
cargs.append('-DGECODE_VERSION=$(./gecode_version)') cargs.append('-DGECODE_VERSION=$(./gecode_version)')
self.assertEqual(ext.extra_compile_args, cargs) self.assertEqual(ext.extra_compile_args, cargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment