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
4
votes
1 answer

Error on "pip install -U channels" command using for otree (Running setup.py bdist_wheel for twisted ... error)

For a project using otree (http://otree.readthedocs.io/) I ran into some problems trying to install Channels in order to make use of real-time functionalities. Because of the long output I tried to figure out the most important parts: For full…
visionInc
  • 175
  • 4
  • 11
4
votes
1 answer

Installing your own Python Package

I have defined a few classes in a Python file. I know I can import it into a given script so long as that file is in the same directory as my script; however, I would like to be able to install that file as a package so I can import it without…
Connor
  • 41
  • 1
4
votes
0 answers

Upload different wheel distributions to PyPI

I'm packaging a Python project with compiled extensions, and so I need to build different wheels for each platform (Linux and OSX) and Python versions (2.7 and 3.6). I can correctly create each wheel with: python setup.py bdist_wheel and then…
mavillan
  • 365
  • 1
  • 2
  • 13
4
votes
1 answer

What determines which index `pip` is going to use?

I want pip to install wheel from my wheelhouse, and fallback to PyPI (via caching proxy) if and only if the wheel is missing from the wheelhouse. I'm attempting to achieve this by calling pip install -U --index-url $PYPI_PROXY_URL --find-links…
vartec
  • 131,205
  • 36
  • 218
  • 244
4
votes
2 answers

Installing twisted on python 3.5 and virtualenv using pip

when i run pip install twisted in the command line in windows, it starts installing packages until the flowing line comes up. failed building wheel for twisted pip then crashed soon after, saying it has failed the installation. why is this ? is…
Brian Formento
  • 731
  • 2
  • 9
  • 24
4
votes
1 answer

How to instrument setup.py to use wheel packages

In my setup.py I have a dependency for numpy (in install_requires). Is it possible to instrument the setup function to use wheel packages rather then source ones and not compile the whole numpy? Note: When I do pip install numpy it downloads the…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
4
votes
1 answer

Set Python wheel version tag dynamically

I'm trying to integrate building of a wheel file into a Bamboo plan. Ultimately, I'd like to tie part of the version tag of the .whl file to the Bamboo build number in someway, i.e. the pre-release for version 0 would be 0.dev1, 0.dev2, 0.dev3 for…
TWReever
  • 357
  • 4
  • 14
4
votes
2 answers

Failed building wheel for mysqlclient

I downloaded wheel to the most recent version But I'm not entirely sure how to make of this semi-cryptic error message Failed building wheel for mysql-python Command "/Users/username/Desktop/Project/venv/bin/python -u -c "import setuptools, …
abcf
  • 685
  • 2
  • 10
  • 25
4
votes
0 answers

Deploying a python app with wheels instead of requirements.txt

I have a number of python packages defined in requirements.txt and instead of installing from external sources would like to package/install them from wheels. I ran the following command to generate the wheels from my requirements.txt based on…
user1686342
  • 1,265
  • 1
  • 18
  • 24
4
votes
0 answers

Cannot install pymssql from wheel format

I want to install pymssql-2.1.2-cp35-cp35m-win_amd64.whl but when run the following code : C:\Users\----\Downloads>c:/python/python35-32/scripts/pip install "pymssql-2.1.2-cp35-cp35m-win_amd64.whl" the response of pip install…
4
votes
1 answer

Extract python wheels from pip wheel cache?

It appears that pip now does automated caching of wheels: http://pip.readthedocs.org/en/stable/reference/pip_install/#wheel-cache I'm trying to collect wheels to create an installer for a custom learning setup (ipython3 notebook, etc), however, it…
monkut
  • 42,176
  • 24
  • 124
  • 155
4
votes
1 answer

No lxml Wheel for Linux?

The lxml project has decided to not provide a Wheel for lxml on Linux: https://bugs.launchpad.net/lxml/+bug/1176147 I am neither an expert on PEP 427 or lxml's dependencies, so I'm hoping someone can explain why or why not the lxml team's concerns…
Charles Offenbacher
  • 3,094
  • 3
  • 31
  • 38
4
votes
4 answers

How to install this wheel?

I managed to install pip but when I use pip to install the downloaded wheel, it prints: C:\Python34\Scripts\pip install pygame-1.9.2a0-cp34-none-win_amd64.whl Requirement 'pygame-1.9.2a0-cp34-none-win_amd64.whl' looks like a filename, but the file…
DedSecz
  • 163
  • 2
  • 2
  • 6
4
votes
0 answers

Python, setuptools, wheel, entry_points, .exe wrappers for Windows, and Multiprocessing

TL;DR; - setuptools/distutils script wrapper .exe entry_points do not trigger Windows multiprocessing infinite recursion. Wheel's wrapper .exe entry_points do. How can I get the previous behavior? Many of us have probably ran into the problem with…
mobiusklein
  • 1,403
  • 9
  • 12
4
votes
1 answer

If you publish Python using wheel format do you still need to publish them as egg?

Assuming that you are supporting Python 2.6 or newer, does it make any sense to publish .egg packages or is enough to publish .whl ones? In my case, the packages are pure python.
sorin
  • 161,544
  • 178
  • 535
  • 806