[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 1001, Sat Apr 19 19:32:32 2003 UTC version 1008, Tue Apr 22 20:08:22 2003 UTC
Line 2 
Line 2 
   
 """Distutils setup file"""  """Distutils setup file"""
   
 from distutils.core import Extension  execfile('src/setup/prologue.py')
 from os.path import join, walk  
 from os import sep  
 import fnmatch  
   
 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.
   
   
 try:  
     import Pyrex.Distutils  
     EXT = '.pyx'  
   
 except ImportError:  
     EXT = '.c'  
   
   
 def findDataFiles(dir, skipDepth, *globs):  
   
     def visit(out, dirname, names):  
         n = []  
         for pat in globs:  
             n.extend(fnmatch.filter(names,pat))  
         if n:  
             instdir = sep.join(dirname.split(sep)[skipDepth:])  
             out.append( (instdir, [join(dirname,f) for f in n]) )  
   
     out = []  
     walk(dir,visit,out)  
     return out  
   
   
   
 # Metadata  # Metadata
   
 PACKAGE_NAME = "PEAK"  PACKAGE_NAME = "PEAK"
Line 73 
Line 46 
 ]  ]
   
   
   
   
   
   
 if include_tests:  if include_tests:
   
     packages += [      packages += [
Line 102 
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 112 
Line 79 
             ),              ),
         ]          ]
   
   
 try:  try:
     # Check if Zope X3 is installed; we use zope.component      # Check if Zope X3 is installed; we use zope.component
     # because we don't install it ourselves; if we used something we      # because we don't install it ourselves; if we used something we
Line 144 
Line 112 
   
   
   
   
   
   
   
   
   
   
   
   
 execfile('src/setup/common.py')  execfile('src/setup/common.py')
   
 setup(  setup(


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

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help