[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 895, Tue Feb 18 23:48:35 2003 UTC version 911, Thu Feb 20 00:49:43 2003 UTC
Line 2 
Line 2 
   
 """Distutils setup file"""  """Distutils setup file"""
   
   include_tests = True        # edit this to stop installation of test modules
   include_metamodels = True   # edit this to stop installation of MOF, UML, etc.
   
   
   # Base packages for installation
   
   packages = [
       'peak', 'peak.api', 'peak.binding', 'peak.config', 'peak.model',
       'peak.naming', 'peak.naming.factories', 'peak.running',
       'peak.storage', 'peak.util',
   
       'Interface', 'Interface.Common', 'Interface.Registry',
       'Persistence',
   ]
   
   
   # Base data files
   
   data_files = [
       ('peak', ['src/peak/peak.ini']),
   ]
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   if include_tests:
   
       packages += [
           'peak.tests', 'peak.binding.tests', 'peak.config.tests',
           'peak.model.tests', 'peak.naming.tests', 'peak.running.tests',
           'peak.storage.tests', 'peak.util.tests',
   
           'Interface.tests', 'Interface.Common.tests',
           'Interface.Registry.tests',
       ]
   
       data_files += [
           ('peak/running/tests', ['src/peak/running/tests/test_cluster.txt']),
       ]
   
   
   if include_metamodels:
   
       packages += [
           'peak.metamodels',
           'peak.metamodels.UML13',
           'peak.metamodels.UML13.Foundation',
           'peak.metamodels.UML13.model',
           'peak.metamodels.UML13.model.Foundation',
           'peak.metamodels.UML13.model.Behavioral_Elements',
       ]
   
       if include_tests:
   
           packages += [
               'peak.metamodels.tests',
           ]
   
           data_files += [
               ('peak/metamodels/tests',
                   ['src/peak/metamodels/tests/MetaMeta.xml']
               ),
           ]
   
   
   
 from distutils.core import setup, Command, Extension  from distutils.core import setup, Command, Extension
 from distutils.command.install_data import install_data  from distutils.command.install_data import install_data
 from distutils.command.sdist import sdist as old_sdist  from distutils.command.sdist import sdist as old_sdist
Line 39 
Line 117 
         # Run the standard sdist command          # Run the standard sdist command
         old_sdist.run(self)          old_sdist.run(self)
   
   
   
   
   
 class test(Command):  class test(Command):
   
     """Command to run unit tests after installation"""      """Command to run unit tests after installation"""
Line 135 
Line 217 
     license="PSF or ZPL",      license="PSF or ZPL",
     platforms=['UNIX','Windows'],      platforms=['UNIX','Windows'],
   
     packages=[      packages    = packages,
         'peak', 'peak.api', 'peak.binding', 'peak.model', 'peak.metamodels',  
   
         'peak.metamodels.UML13',  
         'peak.metamodels.UML13.Foundation',  
   
         'peak.metamodels.UML13.model',  
         'peak.metamodels.UML13.model.Foundation',  
         'peak.metamodels.UML13.model.Behavioral_Elements',  
   
   
         'peak.naming', 'peak.naming.factories', 'peak.util', 'peak.running',  
         'peak.config', 'peak.storage',  
   
         'peak.binding.tests', 'peak.config.tests', 'peak.storage.tests',  
         'peak.metamodels.tests', 'peak.util.tests', 'peak.naming.tests',  
         'peak.model.tests', 'peak.tests', 'peak.running.tests',  
   
         'Interface', 'Interface.tests',  
         'Interface.Common', 'Interface.Common.tests',  
         'Interface.Registry', 'Interface.Registry.tests',  
         'Persistence',  
     ],  
   
     package_dir = {'':'src'},      package_dir = {'':'src'},
   
   
     cmdclass = {      cmdclass = {
         'install_data': install_data, 'sdist': sdist, 'happy': happy,          'install_data': install_data, 'sdist': sdist, 'happy': happy,
         'test': test, 'sdist_nodoc': old_sdist, 'build_ext': build_ext,          'test': test, 'sdist_nodoc': old_sdist, 'build_ext': build_ext,
     },      },
   
     data_files = [      data_files = data_files,
         ('peak', ['src/peak/peak.ini']),  
         ('peak/running/tests', ['src/peak/running/tests/test_cluster.txt']),  
         ('peak/metamodels/tests', ['src/peak/metamodels/tests/MetaMeta.xml']),  
     ],  
   
     ext_modules = [      ext_modules = [
         Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]),          Extension("kjbuckets", ["src/kjbuckets/kjbucketsmodule.c"]),


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

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help