[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 1467, Sat Nov 22 20:43:30 2003 UTC version 1703, Sun Feb 29 22:57:31 2004 UTC
Line 11 
Line 11 
 PACKAGE_NAME = "PEAK"  PACKAGE_NAME = "PEAK"
 PACKAGE_VERSION = "0.5a3"  PACKAGE_VERSION = "0.5a3"
 HAPPYDOC_IGNORE = [  HAPPYDOC_IGNORE = [
     '-i', 'examples',  '-i', 'old', '-i', 'tests', '-i', 'setup',      '-i','datetime', '-i','old', '-i','tests', '-i','setup', '-i','examples',
     '-i', 'kjbuckets', '-i', 'ZConfig', '-i', 'persistence',      '-i', 'kjbuckets', '-i', 'ZConfig', '-i', 'persistence', '-i', 'csv',
 ]  ]
   
 # Base packages for installation  # Base packages for installation
 scripts = ['scripts/peak']  scripts = ['scripts/peak']
   
 packages = [  packages = [
     'peak', 'peak.api', 'peak.binding', 'peak.config', 'peak.model',      'peak', 'peak.api', 'peak.binding', 'peak.config', 'peak.model',
     'peak.naming', 'peak.naming.factories', 'peak.net', 'peak.running',      'peak.naming', 'peak.naming.factories', 'peak.net', 'peak.running',
     'peak.running.tools', 'peak.running.tools.n2', 'peak.security',      'peak.tools', 'peak.tools.n2', 'peak.security', 'peak.tools.supervisor',
     'peak.storage', 'peak.util', 'peak.web', 'protocols',      'peak.storage', 'peak.util', 'peak.web', 'peak.ddt', 'protocols',
     'peak.running.tools.version', 'peak.query',      'peak.tools.version', 'peak.query', 'peak.events',
 ]  ]
   
 extensions = [  extensions = [
Line 39 
Line 38 
     Extension("protocols._speedups", ["src/protocols/_speedups" + EXT]),      Extension("protocols._speedups", ["src/protocols/_speedups" + EXT]),
 ]  ]
   
 # Base data files  
   
 data_files = [  
     ('peak',     ['src/peak/peak.ini']),  
     ('peak/web', ['src/peak/web/resource_defaults.ini']),  
 ] + findDataFiles('src/peak/running', 1, '*.xml', '*.ini')  
   
   
 if include_tests:  if include_tests:
   
Line 54 
Line 46 
         'peak.model.tests', 'peak.naming.tests', 'peak.running.tests',          'peak.model.tests', 'peak.naming.tests', 'peak.running.tests',
         'peak.security.tests', 'peak.web.tests', 'peak.query.tests',          'peak.security.tests', 'peak.web.tests', 'peak.query.tests',
         'peak.storage.tests', 'peak.util.tests', 'protocols.tests',          'peak.storage.tests', 'peak.util.tests', 'protocols.tests',
           'peak.events.tests', 'peak.ddt.tests',
     ]      ]
   
     data_files += [  
         ('peak/running/tests', ['src/peak/running/tests/test_cluster.txt']),  
         ('peak/config/tests',  ['src/peak/config/tests/test_links.ini']),  
     ] + findDataFiles('src/peak/web/tests', 1, '*.pwt')  
   
   
 if include_metamodels:  if include_metamodels:
   
     packages += [      packages += [
         'peak.metamodels',          'peak.metamodels',
         'peak.metamodels.UML13', 'peak.metamodels.UML14',          'peak.metamodels.UML13', 'peak.metamodels.UML14',
Line 73 
Line 60 
     ]      ]
   
     if include_tests:      if include_tests:
   
         packages += [ 'peak.metamodels.tests' ]          packages += [ 'peak.metamodels.tests' ]
   
         data_files += findDataFiles(  
             'src/peak/metamodels/tests', 1, '*.xml', '*.asdl'  
         )  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 try:  try:
     # Check if Zope X3 is installed; we use zope.component      # Check if Zope X3 is installed; we use zope.component
Line 103 
Line 103 
   
     if include_tests:      if include_tests:
         packages += [          packages += [
             'persistence.tests', 'ZConfig.tests',              'persistence.tests', 'ZConfig.tests', 'ZConfig.tests.library',
               'ZConfig.tests.library.thing', 'ZConfig.tests.library.widget',
         ]          ]
   
         data_files += findDataFiles(  
             'src/ZConfig/tests', 1, '*.xml', '*.txt', '*.conf'  
         )  
   
   
   
Line 124 
Line 124 
 import sys  import sys
   
 if sys.version_info < (2,3):  if sys.version_info < (2,3):
     # Install datetime module if we're not on 2.3      # Install datetime and csv if we're not on 2.3
     packages += ['datetime']  
       packages += ['datetime','csv']
     if include_tests:      if include_tests:
         packages += ['datetime.tests']          packages += ['datetime.tests']
   
       extensions += [
           Extension('_csv', ['src/_csv.c'])
       ]
   
 import os  import os
   
 if os.name=='posix':  
   
     # install 'fcgiapp' module on posix systems  
     if include_fcgiapp:  
         extensions += [  
             Extension("fcgiapp", [  
                 "src/fcgiapp/fcgiappmodule.c", "src/fcgiapp/fcgiapp.c"  
             ])  
         ]  
   
   
   
Line 162 
Line 158 
   
   
   
   
   
   
   
   if os.name=='posix':
   
       # install 'fcgiapp' module on posix systems
       if include_fcgiapp:
           extensions += [
               Extension("fcgiapp", [
                   "src/fcgiapp/fcgiappmodule.c", "src/fcgiapp/fcgiapp.c"
               ])
           ]
   
       uuidgen = False
       if hasattr(os, 'uname'):
           un = os.uname()
           if un[0] == 'FreeBSD' and int(un[2].split('.')[0]) >= 5:
               uuidgen = True
           elif un[0] == 'NetBSD' and int(un[2].split('.')[0]) >= 2:
               uuidgen = True
           elif un[0] == 'NetBSD' and un[2].startswith('1.6Z'):
               # XXX for development versions before 2.x where uuidgen
               # is present -- this should be removed at some point
               try:
                   if len(un[2]) > 4:
                       if ord(un[2][4]) >= ord('I'):
                           if os.path.exists('/lib/libc.so.12'):
                               l = os.listdir('/lib')
                               l = [x for x in l if x.startswith('libc.so.12.')]
                               l = [int(x.split('.')[-1]) for x in l]
                               l.sort(); l.reverse()
                               if l[0] >= 111:
                                   uuidgen = True
               except:
                   pass
   
       if uuidgen:
           extensions += [
               Extension("peak.util._uuidgen", ["src/peak/util/_uuidgen" + EXT]),
           ]
   
   
   
   
 execfile('src/setup/common.py')  execfile('src/setup/common.py')
   from setuptools import setup
   
   ALL_EXTS = [
       '*.ini', '*.html', '*.conf', '*.xml', '*.pwt', '*.dtd', '*.txt',
   ]
   
 setup(  setup(
     name=PACKAGE_NAME,      name=PACKAGE_NAME,
Line 178 
Line 224 
     package_dir = {'':'src'},      package_dir = {'':'src'},
     packages    = packages,      packages    = packages,
     cmdclass = SETUP_COMMANDS,      cmdclass = SETUP_COMMANDS,
     data_files = data_files,  
       package_data = {
           '': ALL_EXTS,
           'ZConfig.tests': ['input/*.xml', 'input/*.conf'],
           'ZConfig.tests.library.thing': ['extras/extras.xml'],
           'peak.metamodels': ['*.asdl']
       },
   
       test_module = TEST_MODULE,
     ext_modules = extensions,      ext_modules = extensions,
     scripts = scripts,      scripts = scripts,
 )  )
Line 190 
Line 244 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1467  
changed lines
  Added in v.1703

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help