[Python-checkins] python/nondist/sandbox/setuptools/setuptools/command bdist_egg.py, 1.6, 1.7

pje at users.sourceforge.net pje at users.sourceforge.net
Sun Apr 3 20:52:24 CEST 2005

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

Modified Files:
Log Message:
Added "AvailableDistributions" class that finds and indexes usable
distributions; this replaces the previous "iter_distributions()" API.
Added basic platform support to Distribution and AvailableDistributions so
that platform-independent distros as well as local platform-compatible
distros are acceptable.  The actual platform scheme is currently delegated
to distutils.util.get_platform(), but needs to be replaced with a better
scheme of some kind, especially for OS X.

Index: bdist_egg.py
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/bdist_egg.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- bdist_egg.py	2 Apr 2005 02:43:20 -0000	1.6
+++ bdist_egg.py	3 Apr 2005 18:52:21 -0000	1.7
@@ -10,7 +10,7 @@
 from distutils.sysconfig import get_python_version
 from distutils.errors import *
 from distutils import log
-from pkg_resources import parse_requirements
+from pkg_resources import parse_requirements, get_platform
 class bdist_egg(Command):
@@ -75,9 +75,9 @@
         if self.bdist_dir is None:
             bdist_base = self.get_finalized_command('bdist').bdist_base
             self.bdist_dir = os.path.join(bdist_base, 'egg')
-        self.set_undefined_options('bdist',
-                                   ('dist_dir', 'dist_dir'),
-                                   ('plat_name', 'plat_name'))
+        if self.plat_name is None:
+            self.plat_name = get_platform()
+        self.set_undefined_options('bdist',('dist_dir', 'dist_dir'))
     def write_stub(self, resource, pyfile):

More information about the Python-checkins mailing list