[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 501, Sat Aug 17 21:32:48 2002 UTC version 895, Tue Feb 18 23:48:35 2003 UTC
Line 2 
Line 2 
   
 """Distutils setup file"""  """Distutils setup file"""
   
 from distutils.core import setup, Command  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
   from distutils.command.build_ext import build_ext as old_build_ext
 import sys  import sys
   
   try:
       from Pyrex.Distutils.build_ext import build_ext
       EXT = '.pyx'
   except ImportError:
       build_ext = old_build_ext
       EXT = '.c'
   
   
 class install_data(install_data):  class install_data(install_data):
   
     """Variant of 'install_data' that installs data to module directories"""      """Variant of 'install_data' that installs data to module directories"""
   
     def finalize_options (self):      def finalize_options (self):
         self.set_undefined_options('install',          self.set_undefined_options('install',
                                    ('install_purelib', 'install_dir'),                                     ('install_lib', 'install_dir'),
                                    ('root', 'root'),                                     ('root', 'root'),
                                    ('force', 'force'),                                     ('force', 'force'),
                                   )                                    )
Line 30 
Line 39 
         # 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 53 
Line 53 
     def finalize_options(self):      def finalize_options(self):
   
         if self.test_module is None:          if self.test_module is None:
             self.test_module = 'peak.tests'              self.test_module = 'peak.api.tests'
   
         self.test_args = [self.test_module+'.test_suite']          self.test_args = [self.test_module+'.test_suite']
   
Line 92 
Line 92 
   
     user_options = []      user_options = []
   
   
     def initialize_options(self):      def initialize_options(self):
         self.happy_options = None          self.happy_options = None
         self.doc_output_path = None          self.doc_output_path = None
Line 106 
Line 105 
         if self.happy_options is None:          if self.happy_options is None:
             self.happy_options = [              self.happy_options = [
                 '-t', 'PEAK Reference', '-d', self.doc_output_path,                  '-t', 'PEAK Reference', '-d', self.doc_output_path,
                 '-i', 'examples', '-i', 'old', '-i', 'tests', '.',                  '-i', 'examples', '-i', 'old', '-i', 'tests',
                   '-i', 'Interface', '-i', 'Persistence',
                   '-i', 'kjbuckets', '.'
             ]              ]
             if not self.verbose: self.happy_options.insert(0,'-q')              if not self.verbose: self.happy_options.insert(0,'-q')
   
Line 120 
Line 121 
         if not self.dry_run:          if not self.dry_run:
             HappyDoc(self.happy_options).run()              HappyDoc(self.happy_options).run()
   
   
 setup(  setup(
   
     name="PEAK",      name="PEAK",
     version="0.2pre1",      version="0.5a0",
   
     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://telecommunity.com/TransWarp/",      url="http://www.telecommunity.com/PEAK/",
   
       license="PSF or ZPL",
       platforms=['UNIX','Windows'],
   
     packages=[      packages=[
         'peak', 'peak.api', 'peak.binding', 'peak.model', 'peak.metamodels',          'peak', 'peak.api', 'peak.binding', 'peak.model', 'peak.metamodels',
         'peak.metamodels.mof', 'peak.metamodels.uml', 'peak.metamodels.xmi',  
           '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.naming', 'peak.naming.factories', 'peak.util', 'peak.running',
         'peak.config', 'peak.storage',          'peak.config', 'peak.storage',
   
         'peak.binding.tests',          'peak.binding.tests', 'peak.config.tests', 'peak.storage.tests',
         'peak.metamodels.tests', 'peak.util.tests', 'peak.tests',          'peak.metamodels.tests', 'peak.util.tests', 'peak.naming.tests',
           'peak.model.tests', 'peak.tests', 'peak.running.tests',
         'Interface', 'Interface.Common', 'Interface.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,          'test': test, 'sdist_nodoc': old_sdist, 'build_ext': build_ext,
     },      },
   
     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']),          ('peak/metamodels/tests', ['src/peak/metamodels/tests/MetaMeta.xml']),
     ],      ],
   
       ext_modules = [
           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.501  
changed lines
  Added in v.895

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help