Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
Return this platform's string for platform-specific distributions

XXX Currently this is the same as ``distutils.util.get_platform()``, but it
needs some hacks for Linux and Mac OS X.

        def get_build_platform():
    """Return this platform's string for platform-specific distributions

    XXX Currently this is the same as ``distutils.util.get_platform()``, but it
    needs some hacks for Linux and Mac OS X.
    """
    from distutils.util import get_platform
    plat = get_platform()
    if sys.platform == "darwin" and not plat.startswith('macosx-'):
        try:
            version = _macosx_vers()
            machine = os.uname()[4].replace(" ", "_")
            return "macosx-%d.%d-%s" % (int(version[0]), int(version[1]),
                _macosx_arch(machine))
        except ValueError:
            # if someone is running a non-Mac darwin system, this will fall
            # through to the default implementation
            pass
    return plat
        


src/m/e/merlin-1-1.0/merlin/command/bdist_egg.py   merlin(Download)
from distutils.sysconfig import get_python_version, get_python_lib
from distutils import log
from merlin import get_build_platform, Distribution, ensure_directory
from types import CodeType
from merlin.extension import Library
        ('plat-name=', 'p',
                     "platform name to embed in generated filenames "
                     "(default: %s)" % get_build_platform()),
        ('exclude-source-files', None,
                     "remove all .py files from the generated egg"),
 
        if self.plat_name is None:
            self.plat_name = get_build_platform()
 
        self.set_undefined_options('bdist',('dist_dir', 'dist_dir'))

src/m/e/merlin-1-1.0/merlin/command/sdist_egg.py   merlin(Download)
 
from merlin.command.bdist_egg import bdist_egg
from merlin import get_build_platform, to_filename
 
 
 
        if self.plat_name is None:
            self.plat_name = get_build_platform()
 
        self.set_undefined_options('bdist',('dist_dir', 'dist_dir'))