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

version 1.15, 2001/03/31 06:16:32 version 1.16, 2001/04/01 11:49:59
Line 5 Line 5
 # Requirements:  # Requirements:
 #   Python 2.0 or higher (http://www.python.org/)  #   Python 2.0 or higher (http://www.python.org/)
 #   GiNaC 0.8.0 or higher (http://www.ginac.de/)  #   GiNaC 0.8.0 or higher (http://www.ginac.de/)
   #     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/)
 #   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.
   # About their usage, see GiNaC docs (http://www.ginac.de/tutorial/)
   #
 # Note:  # Note:
 #   Compilation of PyGiNaC requires more than 160MB memory (with gcc).  #   Compilation of PyGiNaC requires more than 160MB memory (with gcc
 #   However, if you don't need all the GiNaC classes to be exposed  #   on Intel Linux). However, if you don't need all the GiNaC classes
 #   to Python, you can edit the list `wrap_input' below to indicate  #   to be exposed to Python, you can edit the list `wrap_input' below
 #   your needs. You don't need to worry about class dependencies ---  #   to indicate your needs, this will decrease also the memory consumption
 #   they are solved automatically.  #   during the compilation. You don't need to worry about class dependencies
   #   they are solved automatically. After you edit `wrap_input', run
   #  > python setup.py reinstall
 #  #
 # Pearu Peterson <pearu@cens.ioc.ee>  # Pearu Peterson <pearu@cens.ioc.ee>
 # 30 March 2001  # 30 March 2001
Line 28  if eval(sys.version[0])<2: Line 35  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()
   
   #++++++++++++++ Rebuild ++++++++++++++++++++++++
   rebuild = 0
   
   if 'rebuild' in sys.argv:
       sys.argv[sys.argv.index('rebuild')] = 'build'
       rebuild = 1
   if 'reinstall' in sys.argv:
       sys.argv[sys.argv.index('reinstall')] = 'install'
       rebuild = 1
   
   wrap_input = ['symbol','numeric','constant','relational',
                 'lst','idx','varidx','power','add','mul',
                 'ncmul','pseries','matrix','function','inifcns',
                 'function']
   wrap_input = ['function']
   
 #++++++++++++++++++++ boost +++++++++++++++++++++  #++++++++++++++++++++ boost +++++++++++++++++++++
   
 boost_dir = '/usr/local/share/boost'  boost_dir = '/usr/local/share/boost'
Line 58  def my_init_posix(): Line 81  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 +++++++++++++++++++++  #+++++++++++++++++ PyGiNaC version ++++++++++++++
   
   major_version = 0
   minor_version = 0
   try: execfile(os.path.join('tools','get_revision.py'))
   except: revision_version = 0
   version='%d.%d.%d'%(major_version,minor_version,revision_version)
   
   #++++++++++++++++ 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')  
   
 cppsrc = [ginac_cpp]  cppsrc = [ginac_cpp]
   
 if 1 or not os.path.exists(ginac_cpp):  if rebuild or not os.path.exists(ginac_cpp):
     wrap_input = ['symbol','numeric','constant','relational',  
                   'lst','idx','varidx','power','add','mul',  
                   'ncmul','pseries','matrix','function','inifcns',  
                   'function']  
     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)
Line 82  ginac_ext = Extension('ginac._ginac', Line 107  ginac_ext = Extension('ginac._ginac',
                       library_dirs=[],                        library_dirs=[],
                       define_macros=[('DEBUG_PYGINAC', None)],                        define_macros=[('DEBUG_PYGINAC', None)],
                      )                       )
 #+++++++++++++++++ PyGiNaC version ++++++++++++++  
   
 major_version = 0  
 minor_version = 0  
 execfile(os.path.join('tools','get_revision.py'))  
 version='%d.%d.%d'%(major_version,minor_version,revision_version)  
   
   
 #++++++++++++++++++++ setup +++++++++++++++++++++  #++++++++++++++++++++ setup +++++++++++++++++++++
   
Line 97  setup (name = "PyGiNaC", Line 115  setup (name = "PyGiNaC",
        description = "PyGiNaC --- the wrapper of C++ library GiNaC to Python",         description = "PyGiNaC --- the wrapper of C++ library GiNaC to Python",
        author = "Pearu Peterson",         author = "Pearu Peterson",
        author_email = "pearu@cens.ioc.ee",         author_email = "pearu@cens.ioc.ee",
          maintainer = "Pearu Peterson",
          maintainer_email = "pearu@cens.ioc.ee",
        licence = "LGPL",         licence = "LGPL",
        long_description= """         long_description= """
 GiNaC is an open framework for symbolic computation within the C++  GiNaC is an open framework for symbolic computation within the C++
Line 105  PyGiNaC is a Python package that provide Line 125  PyGiNaC is a Python package that provide
 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,
   lst, exvector, expair, exlist, epvector.    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, cos, tan, etc.  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 ],

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


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