Changeset 2492 for trunk/distutils
- Timestamp:
- 05/11/12 10:21:05 (13 years ago)
- Location:
- trunk/distutils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/distutils/setup.py
r2490 r2492 12 12 13 13 sources = glob.glob('src/*.cpp') 14 sources = glob.glob("external-alma/atnf/pks/pks_maths.cc")14 sources += glob.glob("external-alma/atnf/pks/pks_maths.cc") 15 15 sources += glob.glob("external-alma/atnf/PKSIO/*.cc") 16 17 sources = glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.cc") 16 sources += glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.cc") 18 17 19 18 headers = glob.glob('src/*.h') -
trunk/distutils/setupext.py
r2490 r2492 32 32 ' e.g. $HOME, to add $HOME/lib etc to the build.'), 33 33 ] 34 34 35 35 36 def initialize_options(self): … … 122 123 123 124 124 def run(self): 125 build_ext.build_ext.run(self) 125 def build_extensions(self): 126 delargs = ["-Wstrict-prototypes", "-Wshorten-64-to-32", 127 "-fwrapv"] 128 for comp in [self.compiler.compiler, self.compiler.compiler_so, 129 self.compiler.compiler_cxx]: 130 for arg in comp: 131 if arg in delargs: 132 comp.remove(arg) 133 134 build_ext.build_ext.build_extensions(self)
Note:
See TracChangeset
for help on using the changeset viewer.