Changeset 2517 for trunk/scons_ext.py
- Timestamp:
- 05/15/12 15:17:10 (12 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/scons_ext.py
r2515 r2517 19 19 'Prefix for cfitsio installation location'), 20 20 ('cfitsiolib=', None, 'Name of the cfitsio library'), 21 ('cfitsioincdir=', None, 'The custom cfitsio include dir'), 21 22 ('wcsroot=', None, 'Prefix for wcslib installation location'), 22 23 ('wcslib=', None, 'Name of the wcs library'), … … 49 50 self.cfitsioroot = None 50 51 self.cfitsiolib = None 52 self.cfitsioincdir = None 51 53 self.wcsroot = None 52 54 self.wcslib = None … … 60 62 build_ext.build_ext.finalize_options(self) 61 63 for opt in self.user_options: 62 at r = opt[0].strip("=")63 v = getattr(self, at r)64 attr = opt[0].strip("=") 65 v = getattr(self, attr) 64 66 if v is not None: 65 67 if opt[1] is None: 66 self._scons_options.append("=".join([at r, v]))68 self._scons_options.append("=".join([attr, v])) 67 69 else: 68 70 self._scons_options.append(" ".join(["-"+opt[1], v])) … … 79 81 os.makedirs(extdir) 80 82 cmd = ['scons'] + self._scons_options 81 subprocess.call(cmd) 83 retcode = subprocess.call(cmd) 84 if retcode != 0: 85 raise RuntimeError('scons failed') 82 86 # copy extension into distutils build directory 83 87 if os.path.exists("build/_asap.so"):
Note: See TracChangeset
for help on using the changeset viewer.