Commit 1cfdb7cacde4e20b10169217b75e24666acb18c4

Authored by knodlseder
1 parent d9c330c3

remove Darwin options

Showing 1 changed file with 23 additions and 23 deletions
pyext/setup.py.in
... ... @@ -5,31 +5,31 @@ import os
5 5 import sys
6 6  
7 7 # Removes list of bad prefixes from list
8   -def remove_prefixes(optlist, bad_prefixes):
9   - for bad_prefix in bad_prefixes:
10   - for i, flag in enumerate(optlist):
11   - if flag.startswith(bad_prefix):
12   - optlist.pop(i)
13   - break
14   - return optlist
  8 +#def remove_prefixes(optlist, bad_prefixes):
  9 +# for bad_prefix in bad_prefixes:
  10 +# for i, flag in enumerate(optlist):
  11 +# if flag.startswith(bad_prefix):
  12 +# optlist.pop(i)
  13 +# break
  14 +# return optlist
15 15  
16 16 # Adjust compile options for darwin
17   -if sys.platform.lower().startswith("darwin"):
18   -
19   - # Remove some time consuming options
20   - cvars = sysconfig.get_config_vars()
21   - cflags = cvars.get('OPT')
22   - if cflags:
23   - cflags = remove_prefixes(cflags.split(),
24   - ['-g', '-O', '-Wstrict-prototypes', '-DNDEBUG'])
25   - cvars['OPT'] = str.join(' ', cflags)
26   - cvars['CFLAGS'] = cvars['BASECFLAGS'] + ' ' + cvars['OPT']
27   -
28   - # Remove -arch flags. This prevents building a fat library
29   - cvars['ARCHFLAGS'] = ''
30   -
31   - # Signal darwin compiler adjustments
32   - print 'Adjust default distutils compiler options for darwin.'
  17 +#if sys.platform.lower().startswith("darwin"):
  18 +#
  19 +# # Remove some time consuming options
  20 +# cvars = sysconfig.get_config_vars()
  21 +# cflags = cvars.get('OPT')
  22 +# if cflags:
  23 +# cflags = remove_prefixes(cflags.split(),
  24 +# ['-g', '-O', '-Wstrict-prototypes', '-DNDEBUG'])
  25 +# cvars['OPT'] = str.join(' ', cflags)
  26 +# cvars['CFLAGS'] = cvars['BASECFLAGS'] + ' ' + cvars['OPT']
  27 +#
  28 +# # Remove -arch flags. This prevents building a fat library
  29 +# cvars['ARCHFLAGS'] = ''
  30 +#
  31 +# # Signal darwin compiler adjustments
  32 +# print 'Adjust default distutils compiler options for darwin.'
33 33  
34 34 # Remove any existing symbolic link to libctools.a
35 35 # This will prevent any exception in creating the symbolic link due to
... ...