當前位置: 首頁>>代碼示例>>Python>>正文


Python bdist_wheel.bdist_wheel方法代碼示例

本文整理匯總了Python中wheel.bdist_wheel.bdist_wheel方法的典型用法代碼示例。如果您正苦於以下問題:Python bdist_wheel.bdist_wheel方法的具體用法?Python bdist_wheel.bdist_wheel怎麽用?Python bdist_wheel.bdist_wheel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在wheel.bdist_wheel的用法示例。


在下文中一共展示了bdist_wheel.bdist_wheel方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: create_cmdclass

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def create_cmdclass(wrappers=None, data_dirs=None):
    """Create a command class with the given optional wrappers.

    Parameters
    ----------
    wrappers: list(str), optional
        The cmdclass names to run before running other commands
    data_dirs: list(str), optional.
        The directories containing static data.
    """
    egg = bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled
    wrappers = wrappers or []
    data_dirs = data_dirs or []
    wrapper = functools.partial(wrap_command, wrappers, data_dirs)
    cmdclass = dict(
        build_py=wrapper(build_py, strict=is_repo),
        sdist=wrapper(sdist, strict=True),
        bdist_egg=egg,
        develop=wrapper(develop, strict=True)
    )
    if bdist_wheel:
        cmdclass['bdist_wheel'] = wrapper(bdist_wheel, strict=True)
    return cmdclass 
開發者ID:K3D-tools,項目名稱:K3D-jupyter,代碼行數:25,代碼來源:setupbase.py

示例2: patch_universal_wheel

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def patch_universal_wheel(dist):
    value = getattr(dist, 'milksnake_universal', None)
    if value is None:
        dist.milksnake_universal = True

    base_bdist_wheel = dist.cmdclass.get('bdist_wheel', bdist_wheel)

    if base_bdist_wheel is None:
        return

    class MilksnakeBdistWheel(base_bdist_wheel):
        def get_tag(self):
            rv = base_bdist_wheel.get_tag(self)
            if not dist.milksnake_universal:
                return rv
            return ('py2.py3', 'none',) + rv[2:]

    dist.cmdclass['bdist_wheel'] = MilksnakeBdistWheel 
開發者ID:getsentry,項目名稱:milksnake,代碼行數:20,代碼來源:setuptools_ext.py

示例3: initialize_options

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def initialize_options(self):
        self.sdist = sdist(self.distribution)
        self.bdist_wheel = bdist_wheel(self.distribution)
        self.sdist.initialize_options()
        self.bdist_wheel.initialize_options() 
開發者ID:pcah,項目名稱:python-clean-architecture,代碼行數:7,代碼來源:dist_build.py

示例4: finalize_options

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def finalize_options(self):
        self.sdist.finalize_options()
        self.bdist_wheel.finalize_options()
        self.finalized = 1 
開發者ID:pcah,項目名稱:python-clean-architecture,代碼行數:6,代碼來源:dist_build.py

示例5: run

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def run(self):
        self.sdist.run()
        self.bdist_wheel.run() 
開發者ID:pcah,項目名稱:python-clean-architecture,代碼行數:5,代碼來源:dist_build.py

示例6: create_cmdclass

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def create_cmdclass(prerelease_cmd=None, package_data_spec=None,
        data_files_spec=None):
    """Create a command class with the given optional prerelease class.

    Parameters
    ----------
    prerelease_cmd: (name, Command) tuple, optional
        The command to run before releasing.
    package_data_spec: dict, optional
        A dictionary whose keys are the dotted package names and
        whose values are a list of glob patterns.
    data_files_spec: list, optional
        A list of (path, dname, pattern) tuples where the path is the
        `data_files` install path, dname is the source directory, and the
        pattern is a glob pattern.

    Notes
    -----
    We use specs so that we can find the files *after* the build
    command has run.

    The package data glob patterns should be relative paths from the package
    folder containing the __init__.py file, which is given as the package
    name.
    e.g. `dict(foo=['./bar/*', './baz/**'])`

    The data files directories should be absolute paths or relative paths
    from the root directory of the repository.  Data files are specified
    differently from `package_data` because we need a separate path entry
    for each nested folder in `data_files`, and this makes it easier to
    parse.
    e.g. `('share/foo/bar', 'pkgname/bizz, '*')`
    """
    wrapped = [prerelease_cmd] if prerelease_cmd else []
    if package_data_spec or data_files_spec:
        wrapped.append('handle_files')
    wrapper = functools.partial(_wrap_command, wrapped)
    handle_files = _get_file_handler(package_data_spec, data_files_spec)

    if 'bdist_egg' in sys.argv:
        egg = wrapper(bdist_egg, strict=True)
    else:
        egg = bdist_egg_disabled

    cmdclass = dict(
        build_py=wrapper(build_py, strict=is_repo),
        bdist_egg=egg,
        sdist=wrapper(sdist, strict=True),
        handle_files=handle_files,
    )

    if bdist_wheel:
        cmdclass['bdist_wheel'] = wrapper(bdist_wheel, strict=True)

    cmdclass['develop'] = wrapper(develop, strict=True)
    return cmdclass 
開發者ID:jupyter-widgets,項目名稱:jupyterlab-sidecar,代碼行數:58,代碼來源:setupbase.py

示例7: create_cmdclass

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def create_cmdclass(prerelease_cmd=None, package_data_spec=None, data_files_spec=None):
    """Create a command class with the given optional prerelease class.

    Parameters
    ----------
    prerelease_cmd: (name, Command) tuple, optional
        The command to run before releasing.
    package_data_spec: dict, optional
        A dictionary whose keys are the dotted package names and
        whose values are a list of glob patterns.
    data_files_spec: list, optional
        A list of (path, dname, pattern) tuples where the path is the
        `data_files` install path, dname is the source directory, and the
        pattern is a glob pattern.

    Notes
    -----
    We use specs so that we can find the files *after* the build
    command has run.

    The package data glob patterns should be relative paths from the package
    folder containing the __init__.py file, which is given as the package
    name.
    e.g. `dict(foo=['./bar/*', './baz/**'])`

    The data files directories should be absolute paths or relative paths
    from the root directory of the repository.  Data files are specified
    differently from `package_data` because we need a separate path entry
    for each nested folder in `data_files`, and this makes it easier to
    parse.
    e.g. `('share/foo/bar', 'pkgname/bizz, '*')`
    """
    wrapped = [prerelease_cmd] if prerelease_cmd else []
    if package_data_spec or data_files_spec:
        wrapped.append("handle_files")
    wrapper = functools.partial(_wrap_command, wrapped)
    handle_files = _get_file_handler(package_data_spec, data_files_spec)

    if "bdist_egg" in sys.argv:
        egg = wrapper(bdist_egg, strict=True)
    else:
        egg = bdist_egg_disabled

    cmdclass = dict(
        build_py=wrapper(build_py, strict=is_repo),
        bdist_egg=egg,
        sdist=wrapper(sdist, strict=True),
        handle_files=handle_files,
    )

    if bdist_wheel:
        cmdclass["bdist_wheel"] = wrapper(bdist_wheel, strict=True)

    cmdclass["develop"] = wrapper(develop, strict=True)
    return cmdclass 
開發者ID:IBM,項目名稱:jupyterlab-s3-browser,代碼行數:57,代碼來源:setupbase.py

示例8: create_cmdclass

# 需要導入模塊: from wheel import bdist_wheel [as 別名]
# 或者: from wheel.bdist_wheel import bdist_wheel [as 別名]
def create_cmdclass(prerelease_cmd=None, package_data_spec=None,
                    data_files_spec=None):
    """Create a command class with the given optional prerelease class.

    Parameters
    ----------
    prerelease_cmd: (name, Command) tuple, optional
        The command to run before releasing.
    package_data_spec: dict, optional
        A dictionary whose keys are the dotted package names and
        whose values are a list of glob patterns.
    data_files_spec: list, optional
        A list of (path, dname, pattern) tuples where the path is the
        `data_files` install path, dname is the source directory, and the
        pattern is a glob pattern.

    Notes
    -----
    We use specs so that we can find the files *after* the build
    command has run.

    The package data glob patterns should be relative paths from the package
    folder containing the __init__.py file, which is given as the package
    name.
    e.g. `dict(foo=['./bar/*', './baz/**'])`

    The data files directories should be absolute paths or relative paths
    from the root directory of the repository.  Data files are specified
    differently from `package_data` because we need a separate path entry
    for each nested folder in `data_files`, and this makes it easier to
    parse.
    e.g. `('share/foo/bar', 'pkgname/bizz, '*')`
    """
    wrapped = [prerelease_cmd] if prerelease_cmd else []
    if package_data_spec or data_files_spec:
        wrapped.append('handle_files')

    wrapper = functools.partial(_wrap_command, wrapped)
    handle_files = _get_file_handler(package_data_spec, data_files_spec)
    develop_handler = _get_develop_handler()

    if 'bdist_egg' in sys.argv:
        egg = wrapper(bdist_egg, strict=True)
    else:
        egg = bdist_egg_disabled

    is_repo = os.path.exists('.git')

    cmdclass = dict(
        build_py=wrapper(build_py, strict=is_repo),
        bdist_egg=egg,
        sdist=wrapper(sdist, strict=True),
        handle_files=handle_files,
    )

    if bdist_wheel:
        cmdclass['bdist_wheel'] = wrapper(bdist_wheel, strict=True)

    cmdclass['develop'] = wrapper(develop_handler, strict=True)
    return cmdclass 
開發者ID:jupyter,項目名稱:jupyter-packaging,代碼行數:62,代碼來源:setupbase.py


注:本文中的wheel.bdist_wheel.bdist_wheel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。