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

version 1.16, 2001/04/01 11:49:59 version 1.21, 2001/04/09 21:38:32
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
 #   during the compilation. You don't need to worry about class dependencies  #   during the compilation. You don't need to worry about class dependencies
 #   they are solved automatically. After you edit `wrap_input', run  #   they are solved automatically. After you edit `wrap_input', run
 #  > python setup.py reinstall  #  > python setup.py reinstall
   # 2. For GiNaC 0.8.0 or earlier uncomment GINAC_VERSION_0_8_0_OR_EARLIER
   #    line below.
 #  #
 # Pearu Peterson <pearu@cens.ioc.ee>  # Pearu Peterson <pearu@cens.ioc.ee>
 # 30 March 2001  # 30 March 2001
Line 37  if eval(sys.version[0])<2: Line 40  if eval(sys.version[0])<2:
   
 #++++++++++++++ Rebuild ++++++++++++++++++++++++  #++++++++++++++ Rebuild ++++++++++++++++++++++++
 rebuild = 0  rebuild = 0
   disable_opt = 1 # for final compilation set 0
   
 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 52  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']
   if 0: # optional
       wrap_input += ['expair','epvector']
   
   wrap_input = ['function','inifcns']
   wrap_input = ['add','mul','power','lst','pseries','relational','matrix','numeric','constant','symbol','varidx']
   wrap_input = ['symbol','function','inifcns']
   
   #++++++++++++++++ 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 = 2 # max 15 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 93  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 114  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=[
                      )  #    ('GINAC_VERSION_0_8_0_OR_EARLIER',None),
   #    ('DEBUG_PYGINAC', None),
       ],
                         )
   
 #++++++++++++++++++++ setup +++++++++++++++++++++  #++++++++++++++++++++ setup +++++++++++++++++++++
   

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


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