Diff for /python/pyGiNaC/setup.py between versions 1.24 and 1.25

version 1.24, 2001/04/14 11:55:45 version 1.25, 2001/04/17 22:39:25
Line 10 Line 10
 #   Boost 1.21.1 or higher (http://www.boost.org/)  #   Boost 1.21.1 or higher (http://www.boost.org/)
 #    #  
 # Usage:  # Usage:
 #   > python setup.py install  #   > python setup.py doc install  # this will generate ginac.doc, builds _ginac
   #                                  # and installs the package.
   #   > python setup.py test -v      # this will generate and run test/test_dt.py
 #  #
 # In Python `import ginac'. Module `ginac' extension classes exposing  # In Python `import ginac'. Module `ginac' extension classes exposing
 # almost all GiNaC classes to Python.  # almost all GiNaC classes to Python.
Line 45  if eval(sys.version[0])<2: Line 47  if eval(sys.version[0])<2:
 #++++++++++++++ Rebuild ++++++++++++++++++++++++  #++++++++++++++ Rebuild ++++++++++++++++++++++++
 rebuild = 0  rebuild = 0
 gendoc = 0  gendoc = 0
 disable_opt = 1 # set 0 for final compilation  gentest = 0
   disable_opt = 0 # set 0 for final compilation
   
   if 'test' in sys.argv:
       i = sys.argv.index('test')
       gentest = 1
       if len(sys.argv)>i+1 and sys.argv[i+1]=='-v':
           gentest = 2
           del sys.argv[i+1]
       del sys.argv[i]
 if 'doc' in sys.argv:  if 'doc' in sys.argv:
     del sys.argv[sys.argv.index('doc')]      del sys.argv[sys.argv.index('doc')]
     gendoc = 1      gendoc = 1
Line 64  wrap_input = ['symbol','numeric','consta Line 74  wrap_input = ['symbol','numeric','consta
               'function','flags','exvector',                'function','flags','exvector',
               'indexed','color','clifford','tensor']                'indexed','color','clifford','tensor']
   
   wrap_input = ['symbol','numeric','constant','relational',
                 'lst','power','add','mul',
                 'ncmul','pseries','matrix','function','inifcns',
                 'function','flags','exvector']
   
   #wrap_input += ['indexed','color','clifford','tensor']
   
 #wrap_input = ['function','inifcns']  #wrap_input = ['function','inifcns']
 #wrap_input = ['add','mul','power','lst','pseries','relational','matrix','numeric','constant','symbol','varidx']  #wrap_input = ['add','mul','power','lst','pseries','relational','matrix','numeric','constant','symbol','varidx']
 #wrap_input = ['symbol','lst','matrix']  #wrap_input = ['symbol','function']
 #wrap_input = ['symbol','tensor']  #wrap_input = ['symbol','tensor']
   #wrap_input = ['symbol','add','mul','lst','numeric','power']
 wrap_input = ['symbol','lst']  
   
 #++++++++++++++++ Parameters ++++++++++++++++  #++++++++++++++++ Parameters ++++++++++++++++
 nof_lst_params = 10   # max 15 for ginac, max 10 for boost.python, min 1  nof_lst_params = 10   # max 15 for ginac, max 10 for boost.python, min 1
Line 120  version='%d.%d.%d'%(major_version,minor_ Line 136  version='%d.%d.%d'%(major_version,minor_
 #++++++++++++++++ ginac._ginac +++++++++++++++++++++  #++++++++++++++++ ginac._ginac +++++++++++++++++++++
   
 ginac_cpp = os.path.join('src','_ginac.cpp')  ginac_cpp = os.path.join('src','_ginac.cpp')
   wrapper_dir = 'wrappers'
   
 cppsrc = [os.path.join('wrappers','ginac_enhancements.cpp'),  cppsrc = [os.path.join(wrapper_dir,'ginac_enhancements.cpp'),
           ginac_cpp]            os.path.join(wrapper_dir,'slice.c'),
             ginac_cpp,
             os.path.join(wrapper_dir,'python_repr.cpp'),
             os.path.join(wrapper_dir,'python_str.cpp'),
             ]
   
   
   execfile(os.path.join(wrapper_dir,'build.py'))
   
 wrapper_dir = 'wrappers'  
 if gendoc:  if gendoc:
     execfile(os.path.join(wrapper_dir,'build.py'))      build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=1,onlytest=0,
     build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=1,  
                     vers=version,credits=__credits__)                      vers=version,credits=__credits__)
     if len(sys.argv)==1:  
         print "PyGiNaC Version",version  if gentest:
         sys.exit()      build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlytest=1)
       if gentest==2:
           os.system('%s %s -v'%(sys.executable,os.path.join('test','test_dt.py')))
       else:
           os.system('%s %s'%(sys.executable,os.path.join('test','test_dt.py')))
   
   if len(sys.argv)==1:
       print "PyGiNaC Version",version
       sys.exit()
 if rebuild or not os.path.exists(ginac_cpp):  if rebuild or not os.path.exists(ginac_cpp):
     execfile(os.path.join(wrapper_dir,'build.py'))      build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=0,onlytest=0,
     build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=0,  
                     vers=version,credits=__credits__)                      vers=version,credits=__credits__)
   
 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,wrapper_dir],
                       libraries=['ginac','cln'],                        libraries=['ginac','cln'],
                       library_dirs=[],                        library_dirs=[],
                       define_macros=[                        define_macros=[

Removed from v.1.24  
changed lines
  Added in v.1.25


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