Diff for /python/pyGiNaC/setup4.py between versions 1.7 and 1.8

version 1.7, 2001/11/20 17:11:13 version 1.8, 2001/11/26 22:37:44
Line 28  Boost.Python group (www.boost.org), for  Line 28  Boost.Python group (www.boost.org), for 
 simplified exposure of GiNaC C++ classes to Python.  simplified exposure of GiNaC C++ classes to Python.
 """  """
   
   
   ginac_config = '/opt/GiNaC-1.0.1-print_python-23Nov2001/bin/ginac-config'
   ginac_config = 'ginac-config'
   
 import sys,os,string,time,commands,re  import sys,os,string,time,commands,re
   
 __today__ = time.asctime(time.localtime())  __today__ = time.asctime(time.localtime())
Line 42  print 'Python Version',sys.version.split Line 46  print 'Python Version',sys.version.split
   
 #++++++++++++++ Rebuild ++++++++++++++++++++++++  #++++++++++++++ Rebuild ++++++++++++++++++++++++
 rebuild = 0  rebuild = 0
   relink = 0
 disable_opt = 1 # disable optimization flags, useful when debugging  disable_opt = 1 # disable optimization flags, useful when debugging
                 # set 0 for final compilation                  # set 0 for final compilation
   
   if 'relink' in sys.argv:
       from distutils import util
       sys.argv[sys.argv.index('relink')] = 'build'
       com = 'rm -fv build/lib.%s-%s/ginac/*.so'%(util.get_platform(),sys.version[0:3])
       os.system (com)
 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 63  sources = [] Line 73  sources = []
   
 #++++++++++++++++ GiNaC,CLN (,GMP) +++++++++++++++++++++++++++  #++++++++++++++++ GiNaC,CLN (,GMP) +++++++++++++++++++++++++++
 gmp_so = '/usr/lib/libgmp.so' # fix this path if CLN uses gmp.  gmp_so = '/usr/lib/libgmp.so' # fix this path if CLN uses gmp.
 s,ginac_version=commands.getstatusoutput ('ginac-config --version')  s,ginac_version=commands.getstatusoutput (ginac_config+' --version')
 if not s:  if not s:
     print 'GiNaC Version',ginac_version      print 'GiNaC Version',ginac_version
     ginac_prefix=commands.getoutput ('ginac-config --prefix')      ginac_prefix=commands.getoutput (ginac_config+' --prefix')
     ginac_so = os.path.join (ginac_prefix,'lib','libginac.so')      ginac_so = os.path.join (ginac_prefix,'lib','libginac.so')
     if os.path.isfile(ginac_so):      if os.path.isfile(ginac_so):
         extra_objects.append (ginac_so)          extra_objects.append (ginac_so)
Line 91  if not s: Line 101  if not s:
             libraries += ['cln']              libraries += ['cln']
             print 'Failed to establish CLN using cln-config. Using defaults.'              print 'Failed to establish CLN using cln-config. Using defaults.'
     else:      else:
         extra_link_args.append (commands.getoutput ('ginac-config --libs'))          extra_link_args.append (commands.getoutput (ginac_config +' --libs'))
     extra_compile_args.append (commands.getoutput ('ginac-config --cppflags'))      extra_compile_args.append (commands.getoutput (ginac_config+' --cppflags'))
 else:  else:
     print 'Failed to establish GiNaC using ginac-config. Using defaults.'      print 'Failed to establish GiNaC using ginac-config. Using defaults.'
     libraries += ['ginac','cln']      libraries += ['ginac','cln']
Line 196  if len(sys.argv)==1: Line 206  if len(sys.argv)==1:
   
 ginac_src = []  ginac_src = []
 for n in ['_ginac.cpp',  for n in ['_ginac.cpp',
           'ginac_enhancements.cpp'            'ginac_enhancements.cpp',
             'slice.c'
           ]:            ]:
     ginac_src.append(os.path.join(wrapper_dir,n))      ginac_src.append(os.path.join(wrapper_dir,n))
   

Removed from v.1.7  
changed lines
  Added in v.1.8


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