[Python-checkins] python/nondist/sandbox/setuptools/setuptools/command bdist_egg.py, 1.1, 1.2

pje at users.sourceforge.net pje at users.sourceforge.net
Mon Mar 21 21:12:36 CET 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18583/setuptools/command

Modified Files:
	bdist_egg.py 
Log Message:
Add python version to egg filename.


Index: bdist_egg.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/bdist_egg.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bdist_egg.py	21 Mar 2005 19:50:46 -0000	1.1
+++ bdist_egg.py	21 Mar 2005 20:12:33 -0000	1.2
@@ -8,6 +8,7 @@
 from distutils.core import Command
 from distutils.util import get_platform
 from distutils.dir_util import create_tree, remove_tree, ensure_relative,mkpath
+from distutils.sysconfig import get_python_version
 from distutils.errors import *
 from distutils import log
 
@@ -74,8 +75,8 @@
 
         # And make an archive relative to the root of the
         # pseudo-installation tree.
-        archive_basename = "%s-%s" % (self.distribution.get_fullname(),
-                                      self.plat_name)
+        archive_basename = "%s-py%s-%s" % (self.distribution.get_fullname(),
+                                      get_python_version(),self.plat_name)
 
         # OS/2 objects to any ":" characters in a filename (such as when
         # a timestamp is used in a version) so change them to hyphens.



More information about the Python-checkins mailing list