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

version 1.13, 2001/03/30 09:07:09 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('src','_ginac.cpp')
 ginac_cpp = os.path.join('tools','wrappers','ginac.cpp')  ginac_cpp = os.path.join('tools','wrappers','ginac.cpp')
Line 50  if 1: Line 50  if 1:
                   'lst','idx','varidx','power','add','mul',                    'lst','idx','varidx','power','add','mul',
                   'ncmul','pseries','matrix','function','inifcns',                    'ncmul','pseries','matrix','function','inifcns',
                   'function']                    'function']
     wrap_input = ['numeric'] #['function','inifcns']      #wrap_input = ['matrix']
     execfile(os.path.join('tools','wrappers','build.py'))      execfile(os.path.join('tools','wrappers','build.py'))
     wrapper_dir = os.path.join('tools','wrappers')      wrapper_dir = os.path.join('tools','wrappers')
     build_ginac_cpp(wrap_input,ginac_cpp)      build_ginac_cpp(wrap_input,ginac_cpp)

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


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