Changeset 2525 for trunk/setup_ext
- Timestamp:
- 05/16/12 09:23:15 (13 years ago)
- Location:
- trunk/setup_ext
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup_ext/__init__.py
r2517 r2525 1 1 import os, sys, platform 2 2 import subprocess 3 import glob 3 4 import shutil 4 5 from distutils.command import build_ext 6 7 try: 8 from setuptools import setup as _setup 9 from setuptools import Extension 10 except ImportError, ex: 11 from distutils.core import setup as _setup 12 from distutils.core import Extension 13 14 def setup(*args, **kwargs): 15 asapso = Extension(name="%s._%s".format(kwargs['name'],kwargs['name']), 16 sources=[]) 17 d = {'ext_modules': [ asapso ], 18 'cmdclass': {'build_ext': scons_ext} 19 } 20 kwargs.update(d) 21 print kwargs 22 _setup(*args, **kwargs) 23 5 24 6 25 class scons_ext(build_ext.build_ext): … … 28 47 ('f2clib=', None, 'Name of the fortran-to-c library'), 29 48 ('jobs=','j', 'Number of processes'), 49 ('extraflags=', None, 50 'Extra build flags e.g. static libs, defines etc.'), 30 51 ('extraroot=', None, 31 52 'Extra root directory where muiltple packages could be found,' … … 44 65 self.jobs = None 45 66 self.extraroot = None 67 self.extraflags = None 46 68 self.casacoreroot = None 47 69 self.casacorestatic = None
Note:
See TracChangeset
for help on using the changeset viewer.