Questions tagged [python-wheel]

​​​​​​​​​​​​​​​​​​​​A wheel is a ZIP-like archive format for Python packages with the .whl extension.

Wheels were introduced to Python with PEP 427 to simplify distribution installation. It replaces the egg format.

Useful Links:

  1. PEP 376 Database of Installed Python Distributions infrastructure Wheels are based on
  2. PEP 427 Introduction of the Wheel format
  3. Wheel package index
883 questions
6
votes
1 answer

How do I configure tox so it produces a wheel?

According to the docs, tox creates "a source distribution of the current project by invoking python setup.py sdist". How do I configure tox so it produces a wheel instead and then uses it for testing?: python setup.py bdist_wheel --universal
Pablo
  • 983
  • 10
  • 24
6
votes
1 answer

pypi: Why don't all the packages use wheel?

This python wheel website says, only 300 of the top 360 packages use wheel. I further analysed the Python ecosystem and found that about 2961 packages out of top 5000 use wheel, and others don't. My questions are: If they don't use wheel, do they…
R4444
  • 2,016
  • 2
  • 19
  • 30
6
votes
1 answer

How do you upload a single wheel file to a pypi server?

I have a wheel file for a compiled package from here. I would like to host this on my internal pypi server. Is it possible?
henryJack
  • 4,220
  • 2
  • 20
  • 24
6
votes
1 answer

python pip - development mode with local dependencies

Background I have two python projects. Project A and Project B. Each project has its own virtual environment and its own setup.py. Both projects are not pure py files and has "build" process like building extensions, generate source etc. A is…
Lior Cohen
  • 5,570
  • 2
  • 14
  • 30
6
votes
2 answers

Yocto recipe python whl package

I am writing a custom yocto recipe that should install a python package from a .whl file. I tried it using a recipe that contains: inherit pypi…
Mathias
  • 61
  • 1
  • 3
6
votes
1 answer

whl is not a supported wheel on this platform

I am new to python, and am trying to install some modules/packages using .whl file. The system does not have access to the internet so everything is local. I'm running RHEL 6.9 64bit 2.6.32-696.10.1.el6.x86_64 Python is version 2.7.12…
wazzu62
  • 57
  • 1
  • 3
6
votes
1 answer

Any limitations on platform constraints for wheels on PyPI?

Are there any limitations declared anywhere (PEPs or elsewhere) about how broad a scope the Linux wheels uploaded to PyPI should have? Specifically: is it considered acceptable practice to upload linux_x86_64 wheels to PyPI, instead of…
0 _
  • 10,524
  • 11
  • 77
  • 109
6
votes
1 answer

pip install from custom whl file in Dockerfile

I have a Dockerfile which is trying to install a whl file which is located in my project using pip. I want to force pip to include my whl file in its searches, but it doesn't: No distributions matching the version for mylibname==mylibversion I…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
6
votes
5 answers

How to judge which version of .whl file is supported when install a Python package

Recently, I just try to connect my SQL Server in python. So I just download the .whl file from "http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql". in cmd windows, I use the following command: pip install some-package.whl My pc is window 64bit, I…
Wang Jijun
  • 326
  • 4
  • 10
6
votes
3 answers

How to edit a wheel package (.whl)?

I have a python wheel package, when extracted I find some python code, I'd like to edit this code and re-generate the same .whl package again and test it to see the edits .. How do I do that?
Kareem
  • 259
  • 1
  • 3
  • 13
6
votes
1 answer

Why does "pip install lxml" not use the provided wheel, and tries to compile anyway?

A wheel is the new way of distributing pre-compiled packages for installation via pip. The lxml entry on pypi has wheels available for "manylinux". I am running ubuntu. However, when I try to pip install lxml, it seems to try and compile anyway.…
hwjp
  • 15,359
  • 7
  • 71
  • 70
6
votes
1 answer

How to build Python project including dependencies?

I have a few projects, all containing setup.py and requirements.txt. Is it possible to package a whole project in one single file including all requirements compiled and ready to install? What I have tried: python setup.py bdist_wheel Builds a .whl…
kev
  • 8,928
  • 14
  • 61
  • 103
6
votes
3 answers

How to prevent python wheel from expanding shebang?

If I build a package with python setup.py bdist_wheel, the resulting package expands the shebangs in the scripts listed in setup.py via setup(scripts=["script/path"]) to use the absolute path to my python executable…
Fabian Barkhau
  • 1,349
  • 2
  • 12
  • 31
6
votes
1 answer

How to 'partially' install a Python package

I need to use a function in numpy package, say numpy.random.choice (another Python lib function random.choice samples the list uniformly while I want it to do that from some discrete distributions). My program will be distributed to a lot of people…
Broan
  • 63
  • 3
6
votes
0 answers

Can I bundle a local .whl file dependency inside a python wheel distribution file?

I want to bundle a local distribution .whl file inside another wheel file as a dependency. dist_pkg1.whl (referenced wheel file,is a local file) dist_pkg2.whl is dependent on dist_pkg1.whl, and I need to embed dist_pkg1.whl inside dist_pkg2.whl, so…