Diff for /python/pyGiNaC/setup.py between versions 1.4 and 1.14

version 1.4, 2001/03/15 13:48:35 version 1.14, 2001/03/30 15:24:14
Line 2 Line 2
   
 import sys,os,string,time  import sys,os,string,time
   
   #++++++++++++++ Require Python 2.x +++++++++++++
   
 if eval(sys.version[0])<2:  if eval(sys.version[0])<2:
     print "You'll need Python 2.0 or higher to build PyGiNaC"      print "You'll need Python 2.0 or higher to build PyGiNaC"
     sys.exit()      sys.exit()
   
 #++++++++++++++++++++ boost +++++++++++++++++++++  #++++++++++++++++++++ boost +++++++++++++++++++++
 boost_dir = '/home/pearu/cvs/boost'  
 boost_dir = '/usr/local/share/boost'  boost_dir = '/usr/local/share/boost'
   
 bpl_dir = os.path.join(boost_dir,'libs/python/src')  if not os.path.isdir(boost_dir):
       print 'boost_dir=%s must be existing directory'%(`boost_dir`)
       print 'Fix this in setup.py'
       sys.exit()
   
   bpl_dir = os.path.join(boost_dir,'libs','python','src')
 bpl_src = map(lambda f:os.path.join(bpl_dir,f),  bpl_src = map(lambda f:os.path.join(bpl_dir,f),
               ['classes.cpp','conversions.cpp','extension_class.cpp',                ['classes.cpp','conversions.cpp','extension_class.cpp',
                'functions.cpp','init_function.cpp','module_builder.cpp',                 'functions.cpp','init_function.cpp','module_builder.cpp',
                'objects.cpp','types.cpp'])                 'objects.cpp','types.cpp'])
   
 #++++++++++++++++++++ GiNaC +++++++++++++++++++++  
   
 #ginac = '/usr/local'  
   
 #ginac_lib =   
   
   
 #++++++++++++++++++++++++++++++++++++++++++++++++  #++++++++++++++++++++++++++++++++++++++++++++++++
 from distutils.core import setup, Extension  from distutils.core import setup, Extension
   
 #+++++++++++++ replace gcc with g++ +++++++++++++  #+++++HACK+++++ replace gcc with g++ +++++++++++++
 from distutils import sysconfig  from distutils import sysconfig
 save_init_posix = sysconfig._init_posix  save_init_posix = sysconfig._init_posix
 def my_init_posix():  def my_init_posix():
Line 38  def my_init_posix(): Line 38  def my_init_posix():
         print 'to',`g['LDSHARED']`          print 'to',`g['LDSHARED']`
 sysconfig._init_posix = my_init_posix  sysconfig._init_posix = my_init_posix
   
 #++++++++++++++++++++ GiNaC._ginac +++++++++++++++++++++  #++++++++++++++++ GiNaC._ginac +++++++++++++++++++++
   
   ginac_cpp = os.path.join('src','_ginac.cpp')
   ginac_cpp = os.path.join('tools','wrappers','ginac.cpp')
   
   cppsrc = [ginac_cpp]
   
 cppsrc = [os.path.join('src','_ginac.cpp')]  if 1:
 cppsrc = [os.path.join('tools','wrappers','ginac.cpp')]      wrap_input = ['symbol','numeric','constant','relational',
                     'lst','idx','varidx','power','add','mul',
                     'ncmul','pseries','matrix','function','inifcns',
                     'function']
       #wrap_input = ['matrix']
       execfile(os.path.join('tools','wrappers','build.py'))
       wrapper_dir = os.path.join('tools','wrappers')
       build_ginac_cpp(wrap_input,ginac_cpp)
   
 ginac_ext = Extension('GiNaC._ginac',  ginac_ext = Extension('GiNaC._ginac',
                      sources=cppsrc+bpl_src,                        sources=cppsrc+bpl_src,
                      include_dirs=[boost_dir],                        include_dirs=[boost_dir],
                      libraries=['cln','ginac'],                        libraries=['ginac','cln'],
                      library_dirs=[]                        library_dirs=[],
                         define_macros=[('DEBUG_PYGINAC', None)],
                      )                       )
   
   

Removed from v.1.4  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>