Diff for /python/pyGiNaC/setup.py between versions 1.22 and 1.23

version 1.22, 2001/04/10 19:22:15 version 1.23, 2001/04/11 20:31:30
Line 28 Line 28
 # Pearu Peterson <pearu@cens.ioc.ee>  # Pearu Peterson <pearu@cens.ioc.ee>
 # 30 March 2001  # 30 March 2001
   
   __credits__ = """\
   GiNaC people (www.ginac.de), for the GiNaC library.
   Boost.Python people (www.boost.org), for BPL that considerably
   simplified the wrapping of GiNaC C++ classes to Python.
   """
   
 import sys,os,string,time  import sys,os,string,time
   
 #++++++++++++++ Require Python 2.x +++++++++++++  #++++++++++++++ Require Python 2.x +++++++++++++
Line 38  if eval(sys.version[0])<2: Line 44  if eval(sys.version[0])<2:
   
 #++++++++++++++ Rebuild ++++++++++++++++++++++++  #++++++++++++++ Rebuild ++++++++++++++++++++++++
 rebuild = 0  rebuild = 0
   gendoc = 0
 disable_opt = 1 # set 0 for final compilation  disable_opt = 1 # set 0 for final compilation
   
   if 'doc' in sys.argv:
       del sys.argv[sys.argv.index('doc')]
       gendoc = 1
   
 if 'rebuild' in sys.argv:  if 'rebuild' in sys.argv:
     sys.argv[sys.argv.index('rebuild')] = 'build'      sys.argv[sys.argv.index('rebuild')] = 'build'
     rebuild = 1      rebuild = 1
Line 55  wrap_input = ['symbol','numeric','consta Line 66  wrap_input = ['symbol','numeric','consta
   
 #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','numeric','inifcns']  #wrap_input = ['symbol','lst','matrix']
 #wrap_input = ['symbol']  #wrap_input = ['symbol','tensor']
   
 #++++++++++++++++ Parameters ++++++++++++++++  #++++++++++++++++ Parameters ++++++++++++++++
 nof_lst_params = 0   # 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
 nof_ncmul_params = 3  # max 6  nof_ncmul_params = 6  # max 6
 nof_function_params = 3 # max 13 for ginac, max 10 for boost.python, min 1  nof_function_params = 9 # max 13 for ginac, max 9 for boost.python, min 1
 #++++++++++++++++++++ boost +++++++++++++++++++++  #++++++++++++++++++++ boost +++++++++++++++++++++
   
 boost_dir = '/usr/local/share/boost'  boost_dir = '/usr/local/share/boost'
Line 98  sysconfig._init_posix = my_init_posix Line 110  sysconfig._init_posix = my_init_posix
 #+++++++++++++++++ PyGiNaC version ++++++++++++++  #+++++++++++++++++ PyGiNaC version ++++++++++++++
   
 major_version = 0  major_version = 0
 minor_version = 1  minor_version = 2
 try: execfile(os.path.join('tools','get_revision.py'))  try: execfile(os.path.join('tools','get_revision.py'))
 except: revision_version = 0  except: revision_version = 0
 version='%d.%d.%d'%(major_version,minor_version,revision_version)  version='%d.%d.%d'%(major_version,minor_version,revision_version)
Line 108  version='%d.%d.%d'%(major_version,minor_ Line 120  version='%d.%d.%d'%(major_version,minor_
 ginac_cpp = os.path.join('src','_ginac.cpp')  ginac_cpp = os.path.join('src','_ginac.cpp')
   
 cppsrc = [ginac_cpp]  cppsrc = [ginac_cpp]
   wrapper_dir = 'wrappers'
   if gendoc:
       execfile(os.path.join(wrapper_dir,'build.py'))
       build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=1,
                       vers=version,credits=__credits__)
       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):
     wrapper_dir = 'wrappers'  
     execfile(os.path.join(wrapper_dir,'build.py'))      execfile(os.path.join(wrapper_dir,'build.py'))
     build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir)      build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir,onlydoc=0,
                       vers=version,credits=__credits__)
   
 ginac_ext = Extension('ginac._ginac',  ginac_ext = Extension('ginac._ginac',
                       sources=cppsrc+bpl_src,                        sources=cppsrc+bpl_src,
Line 147  such as sin, factorial, etc. Line 166  such as sin, factorial, etc.
 """,  """,
        url = "http://cens.ioc.ee/projects/pyginac/",         url = "http://cens.ioc.ee/projects/pyginac/",
        ext_modules = [ ginac_ext ],         ext_modules = [ ginac_ext ],
        packages = ['ginac'],         packages = ['ginac','ginac.doc'],
        package_dir = {'ginac': 'lib'},         package_dir = {'ginac': 'lib',
                         'ginac.doc':os.path.join('lib','doc') },
        )         )
   
 print "PyGiNaC Version",version  print "PyGiNaC Version",version

Removed from v.1.22  
changed lines
  Added in v.1.23


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