diff options
author | PJ Eby <distutils-sig@python.org> | 2006-04-18 16:16:33 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-04-18 16:16:33 +0000 |
commit | fe16ffbec3ca87fbfb0071c5a0d80e6c2fc9efee (patch) | |
tree | f5109c2a3e336778d81956a58f3c80e6f5d7ea1e /setuptools/command/bdist_egg.py | |
parent | 150889dedfa7345ef5681224415d313cc01fa101 (diff) | |
download | external_python_setuptools-fe16ffbec3ca87fbfb0071c5a0d80e6c2fc9efee.tar.gz external_python_setuptools-fe16ffbec3ca87fbfb0071c5a0d80e6c2fc9efee.tar.bz2 external_python_setuptools-fe16ffbec3ca87fbfb0071c5a0d80e6c2fc9efee.zip |
Split ``get_platform()`` into ``get_supported_platform()`` and
``get_build_platform()`` to work around a Mac versioning problem that caused
the behavior of ``compatible_platforms()`` to be platform specific.
(Backport from 0.7 trunk, rev 45536)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045538
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r-- | setuptools/command/bdist_egg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py index d571ac80..74f2d426 100644 --- a/setuptools/command/bdist_egg.py +++ b/setuptools/command/bdist_egg.py @@ -8,7 +8,7 @@ from setuptools import Command from distutils.dir_util import remove_tree, mkpath from distutils.sysconfig import get_python_version, get_python_lib from distutils import log -from pkg_resources import get_platform, Distribution +from pkg_resources import get_build_platform, Distribution from types import CodeType from setuptools.extension import Library @@ -48,7 +48,7 @@ class bdist_egg(Command): "temporary directory for creating the distribution"), ('plat-name=', 'p', "platform name to embed in generated filenames " - "(default: %s)" % get_platform()), + "(default: %s)" % get_build_platform()), ('exclude-source-files', None, "remove all .py files from the generated egg"), ('keep-temp', 'k', @@ -99,7 +99,7 @@ class bdist_egg(Command): self.bdist_dir = os.path.join(bdist_base, 'egg') if self.plat_name is None: - self.plat_name = get_platform() + self.plat_name = get_build_platform() self.set_undefined_options('bdist',('dist_dir', 'dist_dir')) |