/[papo]/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.1 by charlie, Fri Jun 28 19:43:49 2002 UTC revision 1.2 by styxman, Fri Nov 15 15:32:54 2002 UTC
# Line 1  Line 1 
1  #!/usr/bin/env python  #!/usr/bin/env python
2  #  #
 # Copyright 2001 Free Software Foundation  
 #  
3  # This file is part of GNU Enterprise.  # This file is part of GNU Enterprise.
4  #  #
5  # GNU Enterprise is free software; you can redistribute it  # GNU Enterprise is free software; you can redistribute it
# Line 19  Line 17 
17  # write to the Free Software Foundation, Inc., 59 Temple Place  # write to the Free Software Foundation, Inc., 59 Temple Place
18  # - Suite 330, Boston, MA 02111-1307, USA.  # - Suite 330, Boston, MA 02111-1307, USA.
19  #  #
20    # Copyright 2001-2002 Free Software Foundation
21    #
22    
23  import sys  import sys
24  import string  import string
# Line 52  except AttributeError: Line 52  except AttributeError:
52  #  #
53    
54  if not 'sdist' in sys.argv:  if not 'sdist' in sys.argv:
55      setupcfg = "setup.cfg.in"
56      # Was setup.cfg specified on the command line?
57      try:
58        index = sys.argv.index('--setup-cfg')
59        setupcfg = sys.argv[index+1]
60        sys.argv.pop(index)
61        sys.argv.pop(index)
62    
63      except ValueError:
64        pass
65    
66    if sys.platform != 'win32':    if sys.platform != 'win32':
67      os.system ("""cp setup.cfg.in setup.cfg""")      os.system ("""cp %s setup.cfg""" % setupcfg)
68    else:    else:
69      try:      try:
70        os.remove('setup.cfg')        os.remove('setup.cfg')
# Line 128  class my_build_scripts(build_scripts): Line 139  class my_build_scripts(build_scripts):
139      if dict.has_key('prefix') and not dict.has_key('install_prefix'):      if dict.has_key('prefix') and not dict.has_key('install_prefix'):
140        options.append('install_prefix = prefix')        options.append('install_prefix = prefix')
141    
142      gnue_sys_py = """      gnue_sys_py = """\
143  #  #
144  # Copyright 2001-2002 Free Software Foundation  # Copyright 2001-2002 Free Software Foundation
145  #  #
# Line 248  distutils.core.setup (name = "GNUe-Commo Line 259  distutils.core.setup (name = "GNUe-Commo
259         packages = ["gnue",         packages = ["gnue",
260                     "gnue.common",                     "gnue.common",
261                     "gnue.common.FormatMasks",                     "gnue.common.FormatMasks",
262                       "gnue.common.events",
263                        "gnue.common.schema",
264                       "gnue.common.gear",
265  #                   "gnue.common.installer",  #                   "gnue.common.installer",
266                     "gnue.common.dbdrivers",                     "gnue.common.dbdrivers",
267                     "gnue.common.dbdrivers._dbsig",                     "gnue.common.dbdrivers._dbsig",
# Line 274  distutils.core.setup (name = "GNUe-Commo Line 288  distutils.core.setup (name = "GNUe-Commo
288                     "gnue.common.dbdrivers.sqlrelay",                     "gnue.common.dbdrivers.sqlrelay",
289                     "gnue.common.dbdrivers.sybase",                     "gnue.common.dbdrivers.sybase",
290                     "gnue.common.dbdrivers.appserver",                     "gnue.common.dbdrivers.appserver",
291                       "gnue.common.dbdrivers.configfile",
292                       "gnue.common.dbdrivers.gadfly",
293                     "gnue.common.commdrivers",                     "gnue.common.commdrivers",
294                     "gnue.common.commdrivers._helpers",                     "gnue.common.commdrivers._helpers",
295                     "gnue.common.commdrivers._parser",                     "gnue.common.commdrivers._parser",
296                     "gnue.common.commdrivers._directory",                     "gnue.common.commdrivers._directory",
297                     "gnue.common.commdrivers.xmlrpc",                     "gnue.common.commdrivers.xmlrpc",
298                     "gnue.common.commdrivers.pw_xmlrpc"                     "gnue.common.commdrivers.pw_xmlrpc",
299                       "gnue.common.cursing"
300                   ],                   ],
301    
302         package_dir = {"gnue": 'gnue',         package_dir = {"gnue": 'module/base',
303                        "gnue.common" : "src",                        "gnue.common" : "src",
304                        "gnue.common.installer" : "installer"},                        "gnue.common.installer" : "installer"},
305         )         )

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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