Skip to content

For some packages that use PEP-517 and setuptools, getting wheel metadata involves building the package. How to prevent it? #2814

Answered by tvalentyn
tvalentyn asked this question in Q&A
Discussion options

You must be logged in to vote

pip's verbose mode provides clues as to what is happening. If you run:

python3 -m pip -v download --dest /tmp numpy==1.21.2 --no-deps --no-binary  :all:

we'll see that most of the time is spent on getting project's build dependencies.

Collecting numpy==1.21.2
  File was already downloaded /tmp/numpy-1.21.2.zip
  Running command /home/valentyn/.pyenv/versions/py373/bin/python3 /tmp/pip-standalone-pip-p49e98p9/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uv05j1h6/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'packaging==20.5; platform_machine=='"'"'arm64'"'"'' 'setuptools<49.2.0' wheel==0.36.2 …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@webknjaz
Comment options

@tvalentyn
Comment options

@tvalentyn
Comment options

Answer selected by tvalentyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants