aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-03-21 20:12:33 +0000
committerPJ Eby <distutils-sig@python.org>2005-03-21 20:12:33 +0000
commit6d85a801861c5834bf53cdf62be27aca9774e19b (patch)
treeacc12b74953215cad12663685c70d0299f918d79 /setuptools/command/bdist_egg.py
parente9230cf512726e5ea428028c564a5b6a36b91095 (diff)
downloadexternal_python_setuptools-6d85a801861c5834bf53cdf62be27aca9774e19b.tar.gz
external_python_setuptools-6d85a801861c5834bf53cdf62be27aca9774e19b.tar.bz2
external_python_setuptools-6d85a801861c5834bf53cdf62be27aca9774e19b.zip
Add python version to egg filename.
--HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040990
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 29c8fa5c..7c98155b 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -8,6 +8,7 @@ import os
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 @@ class bdist_egg(Command):
# 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.