Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt bdist_wheel from pypa/wheel #3908

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bootstrap.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ egg_info = setuptools.command.egg_info:egg_info
build_py = setuptools.command.build_py:build_py
sdist = setuptools.command.sdist:sdist
editable_wheel = setuptools.command.editable_wheel:editable_wheel
bdist_wheel = setuptools.command.bdist_wheel:bdist_wheel

[distutils.setup_keywords]
include_package_data = setuptools.dist:assert_bool
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ distutils.commands =
build_clib = setuptools.command.build_clib:build_clib
build_ext = setuptools.command.build_ext:build_ext
build_py = setuptools.command.build_py:build_py
bdist_wheel = setuptools.command.bdist_wheel:bdist_wheel
develop = setuptools.command.develop:develop
dist_info = setuptools.command.dist_info:dist_info
easy_install = setuptools.command.easy_install:easy_install
Expand Down
8 changes: 6 additions & 2 deletions setuptools/build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def run_setup(self, setup_script='setup.py'):
)

def get_requires_for_build_wheel(self, config_settings=None):
return self._get_build_requires(config_settings, requirements=['wheel'])
return self._get_build_requires(config_settings, requirements=[])

def get_requires_for_build_sdist(self, config_settings=None):
return self._get_build_requires(config_settings, requirements=[])
Expand Down Expand Up @@ -430,9 +430,13 @@ def _build_with_temp_dir(
def build_wheel(
self, wheel_directory, config_settings=None, metadata_directory=None
):
info_dir = self._get_dist_info_dir(metadata_directory)
cmd = ["bdist_wheel"]
if info_dir:
cmd = ["dist_info", "--use-cached", "--dist-info-dir", info_dir] + cmd
with suppress_known_deprecation():
return self._build_with_temp_dir(
['bdist_wheel'], '.whl', wheel_directory, config_settings
cmd, ".whl", wheel_directory, config_settings
)

def build_sdist(self, sdist_directory, config_settings=None):
Expand Down
Loading
Loading