[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 974, Thu Apr 10 01:22:36 2003 UTC version 1115, Wed May 14 02:52:51 2003 UTC
Line 2 
Line 2 
   
 """Distutils setup file"""  """Distutils setup file"""
   
   execfile('src/setup/prologue.py')
   
 include_tests = True        # edit this to stop installation of test modules  include_tests = True        # edit this to stop installation of test modules
 include_metamodels = True   # edit this to stop installation of MOF, UML, etc.  include_metamodels = True   # edit this to stop installation of MOF, UML, etc.
   include_fcgiapp    = True   # edit this to stop installation of 'fcgiapp'
   
 # Metadata  # Metadata
   
 PACKAGE_NAME = "PEAK"  PACKAGE_NAME = "PEAK"
 PACKAGE_VERSION = "0.5a0"  PACKAGE_VERSION = "0.5a1"
   
 HAPPYDOC_IGNORE = [  HAPPYDOC_IGNORE = [
     '-i', 'examples',  '-i', 'old', '-i', 'tests',      '-i', 'examples',  '-i', 'old', '-i', 'tests', '-i', 'setup',
     '-i', 'Interface', '-i', 'Persistence', '-i', 'kjbuckets',      '-i', 'kjbuckets', '-i', 'ZConfig', '-i', 'persistence',
 ]  ]
   
   
Line 21 
Line 24 
 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.running',      'peak.naming', 'peak.naming.factories', 'peak.running',
     'peak.storage', 'peak.util',      'peak.storage', 'peak.util', 'protocols',
   
     'Interface', 'Interface.Common', 'Interface.Registry',  
     'Persistence',  
 ]  ]
   
   extensions = [
       Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]),
       Extension(
           "peak.binding._once", [
               "src/peak/binding/_once" + EXT,
               "src/peak/binding/getdict.c"
           ]
       ),
       Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap" + EXT]),
       Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]),
   ]
   
 # Base data files  # Base data files
   
Line 35 
Line 46 
 ]  ]
   
   
   
   
   
   
 if include_tests:  if include_tests:
   
     packages += [      packages += [
         'peak.tests', 'peak.binding.tests', 'peak.config.tests',          'peak.tests', 'peak.binding.tests', 'peak.config.tests',
         'peak.model.tests', 'peak.naming.tests', 'peak.running.tests',          'peak.model.tests', 'peak.naming.tests', 'peak.running.tests',
         'peak.storage.tests', 'peak.util.tests',          'peak.storage.tests', 'peak.util.tests',
   
         'Interface.tests', 'Interface.Common.tests',  
         'Interface.Registry.tests',  
     ]      ]
   
     data_files += [      data_files += [
Line 67 
Line 71 
   
     if include_tests:      if include_tests:
   
         packages += [          packages += [ 'peak.metamodels.tests' ]
             'peak.metamodels.tests',  
         ]  
   
         data_files += [          data_files += [
             ('peak/metamodels/tests',              ('peak/metamodels/tests',
Line 78 
Line 80 
         ]          ]
   
   
   try:
       # Check if Zope X3 is installed; we use zope.component
       # because we don't install it ourselves; if we used something we
       # install, we'd get a false positive if PEAK was previously installed.
       import zope.component
       zope_installed = True
   
   except ImportError:
       zope_installed = False
   
   
   if not zope_installed:
   
       packages += [
           'persistence', 'ZConfig',
       ]
   
       extensions += [
           Extension("persistence._persistence", ["src/persistence/persistence.c"])
       ]
   
       if include_tests:
           packages += [
               'persistence.tests', 'ZConfig.tests',
           ]
   
           data_files += findDataFiles('src/ZConfig/tests', 1, '*.xml', '*.txt', '*.conf')
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   import os
   
   if os.name=='posix':
   
       # install 'peak' script on Unix-like OS's (including cygwin)
       scripts = ['scripts/peak']
   
       # install 'fcgiapp' module, too
       if include_fcgiapp:
           extensions += [
               Extension("fcgiapp", [
                   "src/fcgiapp/fcgiappmodule.c", "src/fcgiapp/fcgiapp.c"
               ])
           ]
   
   else:
       # Nothing to see here, move along...
       scripts = []
   
   
 execfile('src/setup/common.py')  execfile('src/setup/common.py')
Line 87 
Line 148 
     version=PACKAGE_VERSION,      version=PACKAGE_VERSION,
   
     description="The Python Enterprise Application Kit",      description="The Python Enterprise Application Kit",
   
     author="Phillip J. Eby",      author="Phillip J. Eby",
     author_email="transwarp@eby-sarna.com",      author_email="transwarp@eby-sarna.com",
   
     url="http://peak.telecommunity.com/",      url="http://peak.telecommunity.com/",
   
     license="PSF or ZPL",      license="PSF or ZPL",
     platforms=['UNIX','Windows'],      platforms=['UNIX','Windows'],
   
     packages    = packages,  
     package_dir = {'':'src'},      package_dir = {'':'src'},
       packages    = packages,
     cmdclass = SETUP_COMMANDS,      cmdclass = SETUP_COMMANDS,
   
     data_files = data_files,      data_files = data_files,
       ext_modules = extensions,
     ext_modules = [      scripts = scripts,
         Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]),  
         Extension("Persistence.cPersistence",  
             ["src/Persistence/cPersistence.c"]  
         ),  
         Extension(  
             "peak.binding._once", [  
                 "src/peak/binding/_once" + EXT,  
                 "src/peak/binding/getdict.c"  
             ]  
         ),  
         Extension("peak.util.buffer_gap", ["src/peak/util/buffer_gap" + EXT]),  
         Extension("peak.util._Code", ["src/peak/util/_Code" + EXT]),  
     ],  
   
 )  )
   
   


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

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help