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

version 1.14, 2001/03/30 15:24:14 version 1.15, 2001/03/31 06:16:32
Line 1 Line 1
 #!/usr/bin/env python  #!/usr/bin/env python
   #
   #   Setup file for building/installing PyGiNaC
   #
   # Requirements:
   #   Python 2.0 or higher (http://www.python.org/)
   #   GiNaC 0.8.0 or higher (http://www.ginac.de/)
   #   Boost 1.21.1 or higher (http://www.boost.org/)
   #
   # Usage:
   #   > python setup.py install
   #
   # Note:
   #   Compilation of PyGiNaC requires more than 160MB memory (with gcc).
   #   However, if you don't need all the GiNaC classes to be exposed
   #   to Python, you can edit the list `wrap_input' below to indicate
   #   your needs. You don't need to worry about class dependencies ---
   #   they are solved automatically.
   #
   # Pearu Peterson <pearu@cens.ioc.ee>
   # 30 March 2001
   
 import sys,os,string,time  import sys,os,string,time
   
Line 13  if eval(sys.version[0])<2: Line 33  if eval(sys.version[0])<2:
 boost_dir = '/usr/local/share/boost'  boost_dir = '/usr/local/share/boost'
   
 if not os.path.isdir(boost_dir):  if not os.path.isdir(boost_dir):
     print 'boost_dir=%s must be existing directory'%(`boost_dir`)      print 'boost_dir=%s must be existing directory.'%(`boost_dir`)
     print 'Fix this in setup.py'      print 'Get Boost from http://www.boost.org/ and fix its path in setup.py'
     sys.exit()      sys.exit()
   
 bpl_dir = os.path.join(boost_dir,'libs','python','src')  bpl_dir = os.path.join(boost_dir,'libs','python','src')
Line 26  bpl_src = map(lambda f:os.path.join(bpl_ Line 46  bpl_src = map(lambda f:os.path.join(bpl_
 #++++++++++++++++++++++++++++++++++++++++++++++++  #++++++++++++++++++++++++++++++++++++++++++++++++
 from distutils.core import setup, Extension  from distutils.core import setup, Extension
   
 #+++++HACK+++++ replace gcc with g++ +++++++++++++  #+++HACK: replace linker gcc with g++ +++++++++++
 from distutils import sysconfig  from distutils import sysconfig
 save_init_posix = sysconfig._init_posix  save_init_posix = sysconfig._init_posix
 def my_init_posix():  def my_init_posix():
Line 45  ginac_cpp = os.path.join('tools','wrappe Line 65  ginac_cpp = os.path.join('tools','wrappe
   
 cppsrc = [ginac_cpp]  cppsrc = [ginac_cpp]
   
 if 1:  if 1 or not os.path.exists(ginac_cpp):
     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']
     #wrap_input = ['matrix']      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)
   
 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)],
                      )                       )
   #+++++++++++++++++ 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 +++++++++++++++++++++
   
 setup (name = "PyGiNaC",  setup (name = "PyGiNaC",
        version = "0.0.0",         version = version,
        description = "",         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",
        licence = "LGPL",         licence = "LGPL",
        long_description= "",         long_description= """
        url = "",  GiNaC is an open framework for symbolic computation within the C++
   programming language (http://www.ginac.de/).
   PyGiNaC is a Python package that provides a transparent interface
   to GiNaC library. Currently the following GiNaC classes are exposed:
     ex, symbol, numeric, constant, relational, add, mul, power, ncmul,
     matrix, pseries, function, idx, varidx,
     lst, exvector, expair, exlist, epvector.
   In addition, PyGiNaC provides wrappers for various elementary functions,
   such as sin, cos, tan, etc.
   """,
          url = "http://cens.ioc.ee/projects/pyginac/",
        ext_modules = [ ginac_ext ],         ext_modules = [ ginac_ext ],
        packages = ['GiNaC'],         packages = ['ginac'],
        package_dir = {'GiNaC': 'lib'},         package_dir = {'ginac': 'lib'},
        )         )
   
   print "PyGiNaC Version",version

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


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