Ticket #49706: patch-setup.py.diff

File patch-setup.py.diff, 646 bytes (added by mbrethen, 9 years ago)
  • setup.py

    old new  
    4242
    4343os.chdir(pjoin("src", "swiginac"))
    4444
    45 # The command line argument for running swig in c++ mode has changed from
    46 # 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 
    5045if argv[1] == 'build':
    5146    argv[1] = 'build_ext'
    52 if argv[1] == 'build_ext':
    53     argv.insert(2, swig_opt)
    5447   
    5548e = Extension(name='_swiginac',
    5649              sources=['swiginac.i'],
     50              swig_opts=['-c++'],
    5751              **pkgconfig("ginac")
    5852             )
    5953