question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip not naming abi3 wheels correctly

See original GitHub issue

Environment

  • pip version: 19.0.3
  • Python version: 3.x
  • OS: macOS and Linux

Description Attempting to build an abi3 wheel, on macOS or Linux, is not actually producing an abi3 one:

~/.v/tempenv-22383155163ae ❯❯❯ env                        CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1" \
                                                           LDFLAGS="/usr/local/opt/openssl@1.1/lib/libcrypto.a /usr/local/opt/openssl@1.1/lib/libssl.a" \
                                                           CFLAGS="-I/usr/local/opt/openssl@1.1/include -mmacosx-version-min=10.9" \
                               pip wheel cryptography==2.6 --wheel-dir=wheelhouse --no-binary cryptography --no-deps --build-option --py-limited-api=cp34
/Users/agaynor/.virtualenvs/tempenv-22383155163ae/lib/python3.7/site-packages/pip/_internal/commands/wheel.py:109: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
Collecting cryptography==2.6
  Using cached https://files.pythonhosted.org/packages/a3/5f/d5b7d21006e3c1a3919a3cc14e2a5ce1cee1c7ff635f09b31d91bdaff377/cryptography-2.6.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... done
  Stored in directory: /Users/agaynor/.virtualenvs/tempenv-22383155163ae/wheelhouse
Successfully built cryptography

Expected behavior There’ll be an abi3 wheel in the wheelhouse.

Output

Instead there is a normal, non-abi3, wheel.

~/.v/tempenv-22383155163ae ❯❯❯ ls wheelhouse/
cryptography-2.6-cp37-cp37m-macosx_10_14_x86_64.whl

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:20 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
alexcommented, Feb 27, 2019

Error loudly please. We (pyca, as well as projects we build wheels for, such as cffi) build wheels in automation, so we probably wouldn’t have noticed a warning.

0reactions
pfmoorecommented, Oct 4, 2022

Pip now has a --config-options flag. If setuptools has a way to request this behaviour via config options, that might be a way forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Are Python Wheels and Why Should You Care?
If you've installed a Python package using pip , then chances are that a wheel has made the installation faster and more efficient....
Read more >
Tips and tricks - cibuildwheel - Read the Docs
arm64 ¶. The native wheel for macOS on Apple Silicon. Requires Pip 20.3+ (or packaging 20.5+) to install. universal2 ...
Read more >
How to build a PEP384-compliant Python extension module ...
It depends on the backend; not all build backends support PEP 384. distutils. For example, when using pure distutils (so
Read more >
Changelog - pip documentation v22.3.1
Bug Fixes#. Fix entry point generation of pip.X , pipX.Y , and easy_install-X.Y to correctly account for multi-digit Python version segments (e.g. the...
Read more >
pip install all wheels in directory - You.com | The AI Search ...
"--no-index" argument avoids searching the PyPI indexes "--find-links" is an array of locations to look for certain packages. You can pass it file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found