
tseaver at palladion
Mar 14, 2006, 6:03 AM
Post #1 of 1
(4744 views)
Permalink
|
|
SVN: projectsupport/trunk/src/workspace/develop.py Add appropriate 'egg_info' section to development setup.cfg.
|
|
Log message for revision 66008: Add appropriate 'egg_info' section to development setup.cfg. Cosmetics (copyright date, line wraps). Changed: U projectsupport/trunk/src/workspace/develop.py -=- Modified: projectsupport/trunk/src/workspace/develop.py =================================================================== --- projectsupport/trunk/src/workspace/develop.py 2006-03-14 06:42:38 UTC (rev 66007) +++ projectsupport/trunk/src/workspace/develop.py 2006-03-14 14:03:42 UTC (rev 66008) @@ -1,6 +1,6 @@ ############################################################################## # -# Copyright (c) 2004 Zope Corporation and Contributors. +# Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, @@ -44,9 +44,11 @@ import ez_setup - os.environ['PYTHONPATH'] = os.environ.setdefault('PYTHONPATH', '') + \ - ":" + libdir - ez_setup.main(['--install-dir', libdir, '--script-dir', bindir, '-U', 'setuptools']) + os.environ['PYTHONPATH'] = (os.environ.setdefault('PYTHONPATH', '') + + ":" + libdir) + ez_setup.main(['--install-dir', libdir, + '--script-dir', bindir, + '-U', 'setuptools']) def updateSetupCfg(setup_file, opts): """Update or create a setup.cfg (setup_file) for working on this @@ -59,6 +61,9 @@ # make sure the sections we want exist if not(setup_cfg.has_section('easy_install')): setup_cfg.add_section('easy_install') + + if not(setup_cfg.has_section('egg_info')): + setup_cfg.add_section('egg_info') # update lib dir if opts.libdir is None: @@ -86,6 +91,13 @@ # update find-links setup_cfg.set('easy_install', 'find-links', opts.finddirs) + # update egg_info for development version + if not setup_cfg.has_option('egg_info', 'tag_build'): + setup_cfg.set('egg_info', 'tag_build', '.dev') + + if not setup_cfg.has_option('egg_info', 'tag_revision'): + setup_cfg.set('egg_info', 'tag_revision', '1') + # store the updated version setup_cfg.write(file(setup_file, 'w')) _______________________________________________ Zope-CVS maillist - Zope-CVS [at] zope http://mail.zope.org/mailman/listinfo/zope-cvs Zope CVS instructions: http://dev.zope.org/CVS
|