Ticket #49706: patch-setup.py.diff
File patch-setup.py.diff, 646 bytes (added by mbrethen, 9 years ago) |
---|
-
setup.py
old new 42 42 43 43 os.chdir(pjoin("src", "swiginac")) 44 44 45 # The command line argument for running swig in c++ mode has changed from46 # Python 2.3 to 2.4. We support both.47 swig_opt = '--swig-cpp'48 if distutils.__version__ >= '2.4': swig_opt = '--swig-opts=-c++'49 50 45 if argv[1] == 'build': 51 46 argv[1] = 'build_ext' 52 if argv[1] == 'build_ext':53 argv.insert(2, swig_opt)54 47 55 48 e = Extension(name='_swiginac', 56 49 sources=['swiginac.i'], 50 swig_opts=['-c++'], 57 51 **pkgconfig("ginac") 58 52 ) 59 53