/[gnue]/gnue-common/setup.py
ViewVC logotype

Diff of /gnue-common/setup.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.74 by reinhard, Fri Sep 26 14:24:54 2003 UTC revision 1.75 by reinhard, Sat Sep 27 23:23:01 2003 UTC
# Line 25  import sys Line 25  import sys
25  import string  import string
26  import os  import os
27    
28    from src import PACKAGE, VERSION
29    
30    # =============================================================================
31    # Please keep these routines up to date
32    # =============================================================================
33    
34    # -----------------------------------------------------------------------------
35    # Definition of basic parameters for distribution and installation.
36    # Please add new files/directories that should be installed here.
37    # Note that you also have to add them to MANIFEST.in.
38    # -----------------------------------------------------------------------------
39    
40    def set_params (params):
41      
42      # The Work
43      params ["name"]             = PACKAGE
44      params ["version"]          = VERSION
45      params ["description"]      = "GNU Enterprise Common Base"
46      params ["long_description"] = ""
47      params ["license"]          = "GPL"
48    
49      # The Author
50      params ["author"]       = "GNU Enterprise Team"
51      params ["author_email"] = "gnue-dev@gnu.org"
52      params ["url"]          = "http://www.gnue.org"
53    
54      # The Programs
55      params ["package_dir"] = {"gnue":                  "module/base",
56                                "gnue.common":           "src",
57                                "gnue.common.installer": "installer"}
58      params ["scripts"] = ["scripts/gnue-schema"]
59    
60      # The Data
61      # TODO: get rid of setupext!
62      params ["data_files"] = \
63        [Data_Files (base_dir = 'install_data',
64                     copy_to = 'shared',
65                     template = ['recursive-include images *.png',
66                                 'recursive-include images *.xpm',
67                                 'recursive-include images *.ico',
68                                 'recursive-include images *.bmp'],
69                     preserve_path = 1),
70         Data_Files (base_dir = 'install_config',
71                     copy_to = '',
72                     template = ['recursive-include etc *',
73                                 'prune etc/CVS'],
74                     preserve_path = 0),
75         Data_Files (base_dir = 'install_data',
76                     copy_to = '',
77                     template = ['recursive-include translations *',
78                                 'prune translations/CVS'],
79                     preserve_path = 1),
80         Data_Files (base_dir = 'install_data',
81                     copy_to = 'share/man/man1',
82                     template = ['recursive-include man *.1'],
83                     preserve_path = 0),
84         Data_Files (base_dir = 'install_data',
85                     copy_to = 'share/doc/gnue-common',
86                     template = ['recursive-include doc *',
87                                 'prune doc/CVS',
88                                 'prune doc/technotes/CVS'],
89                     strip_dirs = 1, # This is a number, not true/false
90                     preserve_path = 1)]
91    
92    # -----------------------------------------------------------------------------
93    # Build files to be distributed and installed:
94    # Should generate the files that go in a distribution but aren't in CVS.
95    # Gets called on sdist (always) and on build/install (only when run from CVS).
96    # -----------------------------------------------------------------------------
97    
98    def build_files ():
99      # First check if we have everything installed we need to build the
100      # distribution
101    
102      # is gsscvs available (to build man pages)?
103      if not os.path.isfile ("scripts/gsscvs"):
104        print "Could not find file 'scripts/gsscvs'.  Please run 'setup-cvs.py'."
105        sys.exit (1)
106    
107      # ---------------------------------------------------------------------------
108    
109      print "building man page"
110      if os.system ("mkdir -p man && cd man " \
111                     + " && ../scripts/gsscvs --generate-man-page") != 0:
112        sys.exit (1)
113    
114    # -----------------------------------------------------------------------------
115    # Check dependencies for installation:
116    # Should sys.exit(1) in case any requirement isn't met.
117    # Gets called on install.
118    # -----------------------------------------------------------------------------
119    
120    def check_dependencies ():
121    
122      # TODO!
123      pass
124    
125    # =============================================================================
126    # No changes should be required below this line
127    # =============================================================================
128    
129  from distutils.core import setup  from distutils.core import setup
130  from distutils.util import change_root  from distutils.util import change_root
131  from distutils.sysconfig import get_python_lib  from distutils.sysconfig import get_python_lib
132  from distutils.command.build import build  import distutils.command.sdist
133  from distutils.command.install import install  import distutils.command.build
134  from distutils.command.install_lib import install_lib  import distutils.command.install
135  from setupext import Data_Files, install_Data_Files  from setupext import Data_Files, install_Data_Files
136    
 from src import PACKAGE, VERSION  
   
137  # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
138  # Check Python version  # Check Python version
139  # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
# Line 90  else: Line 189  else:
189    except:    except:
190      pass      pass
191    
192  # -----------------------------------------------------------------------------  # =============================================================================
193  # Save sys.path for later  # sdist: build files to be distributed first
194  # -----------------------------------------------------------------------------  # =============================================================================
   
 orig_sys_path = list (sys.path)         # list () is needed to make a copy  
   
 # -----------------------------------------------------------------------------  
 # Build files to be distributed and installed  
 # -----------------------------------------------------------------------------  
   
 def build_files ():  
   # First check if we have everything installed we need to build the  
   # distribution  
   
   # is gsscvs available (to build man pages)?  
   if not os.path.isfile ("scripts/gsscvs"):  
     print "Could not find file 'scripts/gsscvs'.  Please run 'setup-cvs.py'."  
     sys.exit (1)  
   
   # ---------------------------------------------------------------------------  
   
   print "building man page"  
   if os.system ("mkdir -p man && cd man " \  
                  + " && ../scripts/gsscvs --generate-man-page") != 0:  
     sys.exit (1)  
195    
196  # -----------------------------------------------------------------------------  class sdist (distutils.command.sdist.sdist):
 # Source distribution: Build files to be distributed  
 # -----------------------------------------------------------------------------  
197    
198  if "sdist" in sys.argv:    def run (self):
199    # if a paths.py exists, it would get distributed if we didn't remove it      build_files ()
200    if os.path.isfile ("module/base/paths.py"):      distutils.command.sdist.sdist.run (self)
     os.remove ("module/base/paths.py")  
   build_files ()  
201    
202  # =============================================================================  # =============================================================================
203  # Before build: if done from CVS, build files to be installed  # build: if done from CVS, build files to be installed first
204  # =============================================================================  # =============================================================================
205    
206  class gnue_build (build):  class build (distutils.command.build.build):
   
   def finalize_options (self):  
     build.finalize_options (self)  
     if self.finalized:  
       return  
207    
208      def run (self):
209      if not os.path.isfile ("PKG-INFO"):         # downloaded from CVS?      if not os.path.isfile ("PKG-INFO"):         # downloaded from CVS?
210        if sys.platform != 'win32':        build_files ()
211          build_files ()      distutils.command.build.build.run (self)
212    
213  # =============================================================================  # =============================================================================
214  # Before installation: check dependencies and create real scripts  # install: New option, generate path dependent files
215  # =============================================================================  # =============================================================================
216    
217  class gnue_install (install):  class install (distutils.command.install.install):
218    
219    user_options = install.user_options    user_options = distutils.command.install.install.user_options
220    i = 0    i = 0
221    for option in user_options:    for option in user_options:
222      i = i + 1      i = i + 1
# Line 161  class gnue_install (install): Line 230  class gnue_install (install):
230    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
231    
232    def initialize_options (self):    def initialize_options (self):
233      install.initialize_options (self)      distutils.command.install.install.initialize_options (self)
234      self.install_config = None      self.install_config = None
235    
236    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
237    # Check dependencies    # Finalize options (i.e. provide default if not set by user)
   # ---------------------------------------------------------------------------  
   
   def _check_dependencies (self):  
   
     # TODO!  
     pass  
   
   # ---------------------------------------------------------------------------  
   # Create paths.py  
238    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
239    
240    def _write_paths_py (self):    def finalize_options (self):
241        distutils.command.install.install.finalize_options (self)
242    
243      output = open ("module/base/paths.py", "w")      # try to set a reasonable default for --install-config
244      output.write ("# This file was generated during installation.\n")      if self.install_config is None:
245      output.write ("\n")        if self.home == "/usr" or self.prefix == "/usr":
246      if sys.platform == "win32":          self.install_config = "/etc"
247        # "c:\python23\lib\site-packages\" is not a valid string literal        elif self.home == "/opt/gnue" or self.prefix == "/opt/gnue":
248        # even a raw string cannot end in an odd number of backslashes          self.install_config = "/etc/opt/gnue"
249        output.write ("lib = \"%s\"\n" % self.install_lib.replace("\\","\\\\"))        else:
250      else:          self.install_config = os.path.join (self.install_data, "etc")
       output.write ("lib = \"%s\"\n" % self.install_lib)  
     output.write ("scripts = \"%s\"\n" % self.install_scripts)  
     output.write ("data = \"%s\"\n" % self.install_data)  
     output.write ("config = \"%s\"\n" % self.install_config)  
     output.close ()  
251    
252    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
253    # Build the commands to place into the scripts    # Build the commands to place into the scripts
# Line 201  class gnue_install (install): Line 257  class gnue_install (install):
257      if sys.platform != 'win32':      if sys.platform != 'win32':
258        gnue_env = ""        gnue_env = ""
259      else:      else:
260          # FIXME: Can this be moved into BaseApp.py ?
261          #        Or into the scripts ?
262        gnue_env = \        gnue_env = \
263          "#######\n" \          "#######\n" \
264          + "# The following variables were set when GNUe was installed\n"    \          + "# The following variables were set when GNUe was installed\n"    \
# Line 245  class gnue_install (install): Line 303  class gnue_install (install):
303        fout.close()        fout.close()
304    
305    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
306    # Do it all - this is called by setup () if option install is given    # Quote a path: remove --root and duplicate backslashes
307    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
308    
309    def finalize_options (self):    def _quote (self, path):
310      install.finalize_options (self)      if self.root:
311      if self.finalized:        p = path [len(self.root):]
312        return      else:
313          p = path
314      # try to set a reasonable default for --install-config      return p.replace("\\","\\\\")
     if self.install_config is None:  
       if self.home == "/usr" or self.prefix == "/usr":  
         self.install_config = "/etc"  
       elif self.home == "/opt/gnue" or self.prefix == "/opt/gnue":  
         self.install_config = "/etc/opt/gnue"  
       else:  
         self.install_config = os.path.join (self.install_data, "etc")  
   
     # if install directory isn't in Python's search path, add it there  
     if self.install_lib not in sys.path:  
       sys.path.append (self.install_lib)  
   
     self._write_paths_py ()  
   
     self._check_dependencies ()  
   
     self._generate_scripts ()  
   
 # =============================================================================  
 # After installation of lib, create gnue.py in python's search path  
 # =============================================================================  
315    
316  class gnue_install_lib (install_lib):    # ---------------------------------------------------------------------------
317      # Create gnue.pth
318      # ---------------------------------------------------------------------------
319    
320    def run (self):    def _write_gnue_pth (self):
     install_lib.run (self)  
321    
322      # we need gnue.py only if we don't install in python's search path      # we need gnue.pth only if we don't install in python's search path
323      if self.install_dir not in orig_sys_path:      if self.install_lib not in sys.path:
324        # --root parameter        # where to install gnue.pth
       root = self.get_finalized_command("install").root  
       # the location we have to add to the search path  
       inst_dir = self.install_dir  
       # where to install gnue.py  
325        site_dir = get_python_lib ()        site_dir = get_python_lib ()
326        if root:        if self.root:
         # remove --root from installation directory  
         inst_dir = inst_dir [len(root):]  
327          # add --root to target directory for gnue.py          # add --root to target directory for gnue.py
328          site_dir = change_root (root, site_dir)          site_dir = change_root (self.root, site_dir)
329    
330        # especially if we have --root, the directory might not exist        # especially if we have --root, the directory might not exist
331        if not os.path.isdir (site_dir):        if not os.path.isdir (site_dir):
332          os.makedirs (site_dir)          os.makedirs (site_dir)
333        file = os.path.join (site_dir, "gnue.py")  
334        # now create the file        # now create the file
335          file = os.path.join (site_dir, "gnue.pth")
336          print "trying to create %s" % file
337        try:        try:
338          output = open (file, "w")          output = open (file, "w")
339          output.write ("# This file was generated during installation.\n")          output.write (self._quote (self.install_lib))
         output.write ("import sys\n")  
         output.write ("sys.path.insert (0, \"%s\")\n" % inst_dir)  
         output.write ("del sys.modules [\"gnue\"]\n")  
         output.write ("import gnue")  
340          output.close ()          output.close ()
341            # It worked. Turn off error message about installing into directory
342            # not in path.
343            sys.path.append (self.install_lib)
344        except:        except:
345          # file could not be created:          pass
346          # simply restore original sys.path so the warning appears at the end  
347          # of the installation    # ---------------------------------------------------------------------------
348          sys.path = orig_sys_path    # Create paths.py
349      # ---------------------------------------------------------------------------
350    
351      def _write_paths_py (self):
352        dir = os.path.join (self.install_lib, "gnue")
353        if not os.path.isdir (dir):
354          os.makedirs (dir)
355        file = os.path.join (dir, "paths.py")
356        print "creating %s" % file
357        output = open (file, "w")
358        output.write ("# This file was generated during installation.\n")
359        output.write ("\n")
360        output.write ("lib     = \"%s\"\n" % self._quote (self.install_lib))
361        output.write ("scripts = \"%s\"\n" % self._quote (self.install_scripts))
362        output.write ("data    = \"%s\"\n" % self._quote (self.install_data))
363        output.write ("config  = \"%s\"\n" % self._quote (self.install_config))
364        output.close ()
365    
366      # ---------------------------------------------------------------------------
367      # install.run: generate and install path dependent files afterwards
368      # ---------------------------------------------------------------------------
369    
370      def run (self):
371        check_dependencies ()
372    
373        self._generate_scripts ()
374    
375        self._write_gnue_pth ()
376    
377        self._write_paths_py ()
378    
379        distutils.command.install.install.run (self)
380    
381    # -----------------------------------------------------------------------------
382    # Get all packages in a directory
383    # -----------------------------------------------------------------------------
384    
385    def get_packages (directory, package):
386      content = os.listdir (directory)
387      result = []
388      if "__init__.py" in content:
389        result = [package]
390        for name in content:
391          fullname = os.path.join (directory, name)
392          if os.path.isdir (fullname):
393            result = result + get_packages (fullname, package + "." + name)
394      return result
395    
396  # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
397  # GNUE_VERSION_SUFFIX handling  # GNUE_VERSION_SUFFIX handling
# Line 330  except KeyError: Line 410  except KeyError:
410  # Call the actual setup routine  # Call the actual setup routine
411  # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
412    
413  dfiles = [  setup_params = {}
   Data_Files(  
              base_dir = 'install_data',  
              copy_to = 'shared',  
              template = ['recursive-include images *.png',  
                          'recursive-include images *.xpm',  
                          'recursive-include images *.ico',  
                          'recursive-include images *.bmp',  
                          'prune images/CVS'],  
              preserve_path = 1),  
   Data_Files(  
              base_dir = 'install_config',  
              copy_to = '',  
              template = ['recursive-include etc *',  
                          'prune etc/CVS'],  
              preserve_path = 0),  
   Data_Files(  
              base_dir = 'install_data',  
              copy_to = '',  
              template = ['recursive-include translations *',  
                          'prune translations/CVS'],  
              preserve_path = 1),  
   Data_Files(  
              base_dir = 'install_data',  
              copy_to = 'share/man/man1',  
              template = ['recursive-include man *.1'],  
              preserve_path = 0),  
   Data_Files(  
              base_dir = 'install_data',  
              copy_to = 'share/doc/gnue-common',  
              template = ['recursive-include doc *',  
                          'prune doc/CVS',  
                          'prune doc/technotes/CVS'],  
              strip_dirs = 1, # This is a number, not true/false  
              preserve_path = 1)  
   ]  
   
 setup (name = "GNUe-Common",  
        version = VERSION + suffix,  
        description = "Base files of a GNU Enterprise Tools install",  
        long_description = "",  
        author = "GNUe Team",  
        author_email = "gnue-dev@gnue.org",  
        url = "http://www.gnue.org",  
        license = "GPL",  
414    
415         # Override certain command classes with our own ones  set_params (setup_params)
        cmdclass = {"build": gnue_build,  
                    "install": gnue_install,  
                    "install_lib": gnue_install_lib,  
                    "install_data": install_Data_Files},  
   
        data_files = dfiles,  
   
        packages = ["gnue",  
                    "gnue.common",  
                    "gnue.common.apps",  
                    "gnue.common.cursing",  
                    "gnue.common.datasources",  
                    "gnue.common.datasources.drivers",  
                    "gnue.common.datasources.drivers.Base",  
                    "gnue.common.datasources.drivers.special",  
                    "gnue.common.datasources.drivers.special.static",  
                    "gnue.common.datasources.drivers.special.unbound",  
                    "gnue.common.datasources.drivers.special.configfile",  
                    "gnue.common.datasources.drivers.odbc",  
                    "gnue.common.datasources.drivers.odbc.wodbc",  
                    "gnue.common.datasources.drivers.odbc.mxodbc",  
                    "gnue.common.datasources.drivers.adodbapi",  
                    "gnue.common.datasources.drivers.adodbapi.Schema",  
                    "gnue.common.datasources.drivers.adodbapi.Schema.Creation",  
                    "gnue.common.datasources.drivers.adodbapi.Schema.Discovery",  
                    "gnue.common.datasources.drivers.adodbapi.Extensions",  
                    "gnue.common.datasources.drivers.adodbapi.adodbapi",  
                    "gnue.common.datasources.drivers.postgresql",  
                    "gnue.common.datasources.drivers.postgresql.Base",  
                    "gnue.common.datasources.drivers.postgresql.Schema",  
                    "gnue.common.datasources.drivers.postgresql.Schema.Creation",  
                    "gnue.common.datasources.drivers.postgresql.Schema.Discovery",  
                    "gnue.common.datasources.drivers.postgresql.Extensions",  
                    "gnue.common.datasources.drivers.postgresql.popy",  
                    "gnue.common.datasources.drivers.postgresql.pygresql",  
                    "gnue.common.datasources.drivers.postgresql.psycopg",  
                    "gnue.common.datasources.drivers.postgresql.pypgsql",  
                    "gnue.common.datasources.drivers.oracle",  
                    "gnue.common.datasources.drivers.oracle.Base",  
                    "gnue.common.datasources.drivers.oracle.Schema",  
                    "gnue.common.datasources.drivers.oracle.Schema.Creation",  
                    "gnue.common.datasources.drivers.oracle.Schema.Discovery",  
                    "gnue.common.datasources.drivers.oracle.Extensions",  
                    "gnue.common.datasources.drivers.oracle.cxoracle",  
                    "gnue.common.datasources.drivers.oracle.dcoracle",  
                    "gnue.common.datasources.drivers.appserver",  
                    "gnue.common.datasources.drivers.appserver.Schema",  
                    "gnue.common.datasources.drivers.appserver.Schema.Creation",  
                    "gnue.common.datasources.drivers.appserver.Schema.Discovery",  
                    "gnue.common.datasources.drivers.appserver.Extensions",  
                    "gnue.common.datasources.drivers.appserver.appserver",  
                    "gnue.common.datasources.drivers.db2",  
                    "gnue.common.datasources.drivers.db2.Schema",  
                    "gnue.common.datasources.drivers.db2.Schema.Creation",  
                    "gnue.common.datasources.drivers.db2.Schema.Discovery",  
                    "gnue.common.datasources.drivers.db2.Extensions",  
                    "gnue.common.datasources.drivers.db2.db2",  
                    "gnue.common.datasources.drivers.dbf",  
                    "gnue.common.datasources.drivers.dbf.Schema",  
                    "gnue.common.datasources.drivers.dbf.Schema.Creation",  
                    "gnue.common.datasources.drivers.dbf.Schema.Discovery",  
                    "gnue.common.datasources.drivers.dbf.Extensions",  
                    "gnue.common.datasources.drivers.dbf.dbf",  
                    "gnue.common.datasources.drivers.gadfly",  
                    "gnue.common.datasources.drivers.gadfly.Schema",  
                    "gnue.common.datasources.drivers.gadfly.Schema.Creation",  
                    "gnue.common.datasources.drivers.gadfly.Schema.Discovery",  
                    "gnue.common.datasources.drivers.gadfly.Extensions",  
                    "gnue.common.datasources.drivers.gadfly.gadfly",  
                    "gnue.common.datasources.drivers.informix",  
                    "gnue.common.datasources.drivers.informix.Schema",  
                    "gnue.common.datasources.drivers.informix.Schema.Creation",  
                    "gnue.common.datasources.drivers.informix.Schema.Discovery",  
                    "gnue.common.datasources.drivers.informix.Extensions",  
                    "gnue.common.datasources.drivers.informix.informix",  
                    "gnue.common.datasources.drivers.ingres",  
                    "gnue.common.datasources.drivers.ingres.Schema",  
                    "gnue.common.datasources.drivers.ingres.Schema.Creation",  
                    "gnue.common.datasources.drivers.ingres.Schema.Discovery",  
                    "gnue.common.datasources.drivers.ingres.Extensions",  
                    "gnue.common.datasources.drivers.ingres.ingres",  
                    "gnue.common.datasources.drivers.interbase",  
                    "gnue.common.datasources.drivers.interbase.Schema",  
                    "gnue.common.datasources.drivers.interbase.Schema.Creation",  
                    "gnue.common.datasources.drivers.interbase.Schema.Discovery",  
                    "gnue.common.datasources.drivers.interbase.Extensions",  
                    "gnue.common.datasources.drivers.interbase.interbase",  
                    "gnue.common.datasources.drivers.ldap",  
                    "gnue.common.datasources.drivers.mysql",  
                    "gnue.common.datasources.drivers.mysql.Schema",  
                    "gnue.common.datasources.drivers.mysql.Schema.Creation",  
                    "gnue.common.datasources.drivers.mysql.Schema.Discovery",  
                    "gnue.common.datasources.drivers.mysql.Extensions",  
                    "gnue.common.datasources.drivers.mysql.mysql",  
                    "gnue.common.datasources.drivers.sapdb",  
                    "gnue.common.datasources.drivers.sapdb.Schema",  
                    "gnue.common.datasources.drivers.sapdb.Schema.Creation",  
                    "gnue.common.datasources.drivers.sapdb.Schema.Discovery",  
                    "gnue.common.datasources.drivers.sapdb.Extensions",  
                    "gnue.common.datasources.drivers.sapdb.sapdb",  
                    "gnue.common.datasources.drivers.sqlite",  
                    "gnue.common.datasources.drivers.sqlite.Schema",  
                    "gnue.common.datasources.drivers.sqlite.Schema.Creation",  
                    "gnue.common.datasources.drivers.sqlite.Schema.Discovery",  
                    "gnue.common.datasources.drivers.sqlite.Extensions",  
                    "gnue.common.datasources.drivers.sqlite.sqlite",  
                    "gnue.common.datasources.drivers.sybase",  
                    "gnue.common.datasources.drivers.sybase.Schema",  
                    "gnue.common.datasources.drivers.sybase.Schema.Creation",  
                    "gnue.common.datasources.drivers.sybase.Schema.Discovery",  
                    "gnue.common.datasources.drivers.sybase.Extensions",  
                    "gnue.common.datasources.drivers.sybase.sybase",  
                    "gnue.common.datasources.drivers.sqlrelay",  
                    "gnue.common.datasources.drivers.sqlrelay.sqlrelay",  
                    "gnue.common.datasources.drivers.DBSIG2",  
                    "gnue.common.definitions",  
                    "gnue.common.events",  
                    "gnue.common.external",  
                    "gnue.common.formatting",  
                    "gnue.common.gear",  
                    "gnue.common.logic",  
                    "gnue.common.rpc",  
                    "gnue.common.rpc.parser",  
                    "gnue.common.rpc.test",  
                    "gnue.common.rpc.drivers",  
                    "gnue.common.rpc.drivers.corba",  
                    "gnue.common.rpc.drivers._helpers",  
                    "gnue.common.rpc.drivers.proxy",  
                    "gnue.common.rpc.drivers.pyro",  
                    "gnue.common.rpc.drivers.soap",  
                    "gnue.common.rpc.drivers.sockets",  
                    "gnue.common.rpc.drivers.xmlrpc",  
                    "gnue.common.rpc.drivers.xmlrpc.py_xmlrpc",  
                    "gnue.common.rpc.drivers.xmlrpc.pw_xmlrpc",  
                    "gnue.common.schema",  
                    "gnue.common.schema.scripter",  
                    "gnue.common.schema.scripter.processors",  
                    "gnue.common.utils"],  
   
        package_dir = {"gnue": "module/base",  
                       "gnue.common": "src",  
                       "gnue.common.installer": "installer"},  
416    
417         scripts = ["scripts/gnue-schema"],  if not setup_params.has_key ("packages"):
418         )    packages = []
419      for module, directory in setup_params["package_dir"].items ():
420        packages = packages + get_packages (directory, module)
421      setup_params ["packages"] = packages
422    
423    setup (name             = setup_params ["name"],
424           version          = setup_params ["version"] + suffix,
425           description      = setup_params ["description"],
426           long_description = setup_params ["long_description"],
427           author           = setup_params ["author"],
428           author_email     = setup_params ["author_email"],
429           url              = setup_params ["url"],
430           license          = setup_params ["license"],
431           packages         = setup_params ["packages"],
432           package_dir      = setup_params ["package_dir"],
433           scripts          = setup_params ["scripts"],
434           data_files       = setup_params ["data_files"],
435    
436           # Override certain command classes with our own ones
437           cmdclass = {"build": build,
438                       "install": install,
439                       "install_data": install_Data_Files})
440    
441  # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
442  # Clean up  # Clean up

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26