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

version 1.16, 2001/04/01 11:49:59 version 1.22, 2001/04/10 19:22:15
Line 8 Line 8
 #     For GiNaC, you'll need CLN 1.1 (http://clisp.cons.org/~haible/packages-cln.html)  #     For GiNaC, you'll need CLN 1.1 (http://clisp.cons.org/~haible/packages-cln.html)
 #       Optional, but recommended, CLN can use GMP 3.1.1 (http://www.swox.com/gmp/)  #       Optional, but recommended, CLN can use GMP 3.1.1 (http://www.swox.com/gmp/)
 #   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 install
 #  #
 # In Python `import ginac'. Module `ginac' contains number of extension classes.  # In Python `import ginac'. Module `ginac' extension classes exposing
 # About their usage, see GiNaC docs (http://www.ginac.de/tutorial/)  # almost all GiNaC classes to Python.
   # See GiNaC documentation (http://www.ginac.de/tutorial/) for usage.
 #  #
 # Note:  # Notes:
 #   Compilation of PyGiNaC requires more than 160MB memory (with gcc  # 1. Compilation of PyGiNaC requires more than 160MB memory (with gcc -O2
 #   on Intel Linux). However, if you don't need all the GiNaC classes  #   on Intel Linux). However, if you don't need all the GiNaC classes
 #   to be exposed to Python, you can edit the list `wrap_input' below  #   to be exposed to Python, you can edit the list `wrap_input' below
 #   to indicate your needs, this will decrease also the memory consumption  #   to indicate your needs, this will decrease also the memory consumption
Line 37  if eval(sys.version[0])<2: Line 38  if eval(sys.version[0])<2:
   
 #++++++++++++++ Rebuild ++++++++++++++++++++++++  #++++++++++++++ Rebuild ++++++++++++++++++++++++
 rebuild = 0  rebuild = 0
   disable_opt = 1 # set 0 for final compilation
   
 if 'rebuild' in sys.argv:  if 'rebuild' in sys.argv:
     sys.argv[sys.argv.index('rebuild')] = 'build'      sys.argv[sys.argv.index('rebuild')] = 'build'
Line 48  if 'reinstall' in sys.argv: Line 50  if 'reinstall' in sys.argv:
 wrap_input = ['symbol','numeric','constant','relational',  wrap_input = ['symbol','numeric','constant','relational',
               'lst','idx','varidx','power','add','mul',                'lst','idx','varidx','power','add','mul',
               'ncmul','pseries','matrix','function','inifcns',                'ncmul','pseries','matrix','function','inifcns',
               'function']                'function','flags','exvector',
 wrap_input = ['function']                'indexed','color','clifford','tensor']
   
   #wrap_input = ['function','inifcns']
   #wrap_input = ['add','mul','power','lst','pseries','relational','matrix','numeric','constant','symbol','varidx']
   wrap_input = ['symbol','numeric','inifcns']
   #wrap_input = ['symbol']
   #++++++++++++++++ Parameters ++++++++++++++++
   nof_lst_params = 0   # max 15 for ginac, max 10 for boost.python, min 1
   nof_ncmul_params = 3  # max 6
   nof_function_params = 3 # max 13 for ginac, max 10 for boost.python, min 1
 #++++++++++++++++++++ boost +++++++++++++++++++++  #++++++++++++++++++++ boost +++++++++++++++++++++
   
 boost_dir = '/usr/local/share/boost'  boost_dir = '/usr/local/share/boost'
Line 79  def my_init_posix(): Line 89  def my_init_posix():
         print 'my_init_posix: changing LDSHARED =',`g['LDSHARED']`,          print 'my_init_posix: changing LDSHARED =',`g['LDSHARED']`,
         g['LDSHARED'] = 'g++'+g['LDSHARED'][3:]          g['LDSHARED'] = 'g++'+g['LDSHARED'][3:]
         print 'to',`g['LDSHARED']`          print 'to',`g['LDSHARED']`
       if disable_opt and g['OPT'][:6]=='-g -O2':
           print 'my_init_posix: changing OPT =',`g['OPT']`,
           g['OPT'] = '-g'+g['OPT'][6:]
           print 'to',`g['OPT']`
 sysconfig._init_posix = my_init_posix  sysconfig._init_posix = my_init_posix
   
 #+++++++++++++++++ PyGiNaC version ++++++++++++++  #+++++++++++++++++ PyGiNaC version ++++++++++++++
   
 major_version = 0  major_version = 0
 minor_version = 0  minor_version = 1
 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 96  ginac_cpp = os.path.join('src','_ginac.c Line 110  ginac_cpp = os.path.join('src','_ginac.c
 cppsrc = [ginac_cpp]  cppsrc = [ginac_cpp]
   
 if rebuild or not os.path.exists(ginac_cpp):  if rebuild or not os.path.exists(ginac_cpp):
     execfile(os.path.join('tools','wrappers','build.py'))      wrapper_dir = 'wrappers'
     wrapper_dir = os.path.join('tools','wrappers')      execfile(os.path.join(wrapper_dir,'build.py'))
     build_ginac_cpp(wrap_input,ginac_cpp)      build_ginac_cpp(wrap_input,ginac_cpp,wrapper_dir)
   
 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=['ginac','cln'],                        libraries=['ginac','cln'],
                       library_dirs=[],                        library_dirs=[],
                       define_macros=[('DEBUG_PYGINAC', None)],                        define_macros=[
                      )  #    ('DEBUG_PYGINAC', None),
       ],
                         )
   
 #++++++++++++++++++++ setup +++++++++++++++++++++  #++++++++++++++++++++ setup +++++++++++++++++++++
   
Line 124  programming language (http://www.ginac.d Line 140  programming language (http://www.ginac.d
 PyGiNaC is a Python package that provides a transparent interface  PyGiNaC is a Python package that provides a transparent interface
 to GiNaC library. Currently the following GiNaC classes are exposed:  to GiNaC library. Currently the following GiNaC classes are exposed:
   ex, symbol, numeric, constant, relational, add, mul, power, ncmul,    ex, symbol, numeric, constant, relational, add, mul, power, ncmul,
   matrix, pseries, function, idx, varidx,    matrix, pseries, function, idx, varidx, tensor, indexed,
   lst, exvector, expair, exlist, epvector, etc.    lst, exvector, expair, exlist, epvector, etc.
 In addition, PyGiNaC provides wrappers for various elementary functions,  In addition, PyGiNaC provides wrappers for various elementary functions,
 such as sin, factorial, etc.  such as sin, factorial, etc.

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


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