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
5
votes
4 answers

python install wheel leads to import error

I'd like to make a wheel binary distribution, intstall it and then import it in python. My steps are I first create the wheel: python ./my_package/setup.py bdist_wheel I install the wheel: pip install ./dist/*.whl I try to import the package:…
Zuabi
  • 1,112
  • 1
  • 13
  • 26
5
votes
0 answers

pipenv and wheel/pre-compiled packages

I'm currently using a buildhost for third party packages running $ pip3 wheel --wheel-dir=/root/wheelhouse -r /requirements.txt After successful build I copy the directory /root/wheelhouse onto a new machine and install the compiled packages by…
Denny Crane
  • 637
  • 6
  • 19
5
votes
1 answer

error: invalid command 'bdist_wheel'

On a RHEL machine I have some old Django projects that I'm moving to a new server, these were written for Python2.6, Django1.4.3 I've installed python2.7, created the virtualenvs in my home directory, adjusted paths and references to the Python…
greebstreebling
  • 316
  • 1
  • 2
  • 13
5
votes
1 answer

Python setup.py: Some files are missing

My project structure looks like this: package1/ # a lot of files, submodules here. package2/ # a lot of files, submodules here. package3/ # a lot of files, submodules here. tests/ setup.py I have a setup.py test similar to: setup( …
smart
  • 1,975
  • 5
  • 26
  • 46
5
votes
2 answers

How to publish binary Python wheels for linux on a local machine

I have a package containing C extensions that I would like to upload to pypi: https://github.com/Erotemic/netharn I built a wheel on Ubuntu 18.04 using the command python setup.py bdist_wheel --py-limited-api=cp36, but when I went to upload with…
Erotemic
  • 4,806
  • 4
  • 39
  • 80
5
votes
2 answers

Wheel depends on build-time numpy version

I'm trying to build a python extension which uses the numpy C-API to manipulate numpy arrays. While setting up a deployment chain, I encountered a problem. In my requirements.txt and setup.py I have added the dependency numpy>=1.7, because I'm using…
sauerburger
  • 4,569
  • 4
  • 31
  • 42
5
votes
0 answers

Python: pip install --pre doesn't seem to work as advertised

According to PEP 440 and PEP 426 and the pip install manual (if I read them correctly), I SHOULD be able to create pre-release versions of my libraries/wheels, and use them if-and-only-if I include the "--pre" flag. Furthermore, I took it to mean…
Mark Gerolimatos
  • 2,424
  • 1
  • 23
  • 33
5
votes
2 answers

How to build a Python wheel with compiled Fortran extension module without requiring a specific MinGW version on the user's system?

As far as I understand, one of the main advantages of distributing Python packages through wheels is that I can include extension modules in a compiled form. Then, the user of the package is not required to have a system that allows compilation of…
Amos Egel
  • 937
  • 10
  • 24
5
votes
1 answer

Python packaging: exclude directory from bdist_wheel

I have the following project structure: . ├── docs ├── examples ├── MANIFEST.in ├── README.rst ├── setup.cfg ├── setup.py └── myproject I want to bundle my project into a wheel. For this, I use the following setup.py: #!/usr/bin/env python from…
Bananach
  • 2,016
  • 26
  • 51
5
votes
1 answer

Create wheel without building dependencies

I have a sample project: test/ - __init__.py - module.py - setup.py setup.py is just from setuptools import setup setup(name='test', install_requires=['numpy']) Then when I call pip wheel ., it automatically makes a wheel for numpy.…
user2201041
5
votes
1 answer

Include requirements.txt file in Python wheel

To avoid specifying dependencies in two places, I have a Python project whose setup.py parses a requirements.txt file to generate the list of install_requires packages. This works great until I try to upload a wheel to a devpi server and then…
heyitsbmo
  • 1,715
  • 1
  • 14
  • 29
5
votes
1 answer

Creating Python Wheels for libraries like numpy

We are currently running our own private PyPi server, and uploading wheels of our internal Python libraries to speed up installs. Many of our tools require numpy, scipy, pandas, etc. We built wheels for all of our dependencies by installing all of…
dacox
  • 502
  • 1
  • 6
  • 14
5
votes
5 answers

installing numpy from wheel format on windows ( not a supported wheel on this platform.)

Installing numpy from wheel format: "...is not a supported wheel on this platform" I know this question has been asked before but none of the solutions suggested resolved my issue. First, just like everybody else, i went to…
stratofortress
  • 453
  • 1
  • 9
  • 21
5
votes
1 answer

How to package multiple python wheels into one wheel on Windows?

On Windows for Python 2.7- 3.5 is it possible to package multiple python wheels into one wheel? If not, what are the alternatives using standard library tools? EDIT I'm planning to use archive to package multiple wheels and extract them after…
denfromufa
  • 5,610
  • 13
  • 81
  • 138
5
votes
2 answers

Christoph Gohlke Naming Convention for Unofficial Windows Binaries for Python Extension Packages

What is the naming convention used for the Python wheels at Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages? For example, for scipy here are two of names of wheels on the…
user3731622
  • 4,844
  • 8
  • 45
  • 84