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

Build python wheels for different platforms

I have a library which needs a precompiled extension modlue. Consider following file layout: lib |--- win32_py32 | |--- _lib.py |---- win32_py32 |--- _lib.py How can I build 2 different wheel-packages which only contains the…
Razer
  • 7,843
  • 16
  • 55
  • 103
3
votes
2 answers

poetry build with common library

I have a repository with multiple Python projects that use Poetry for dependency management. The directory structure is: proj1 src/ pyproject.toml proj2 src/ pyproject.toml common_proj src/ pyproject.toml The proj1 and proj2 projects both…
Ofer Helman
  • 714
  • 1
  • 8
  • 25
3
votes
2 answers

ERROR: Could not build wheels for PyGObject, which is required to install pyproject.toml-based projects

So I've been trying to install the PyGObject library but it keeps giving me this error while building the wheel: gi\gimodule.c: fatal error C1083: Cannot open include file: 'msvc_recommended_pragmas.h': No such file or directory error:…
vibhav950
  • 31
  • 5
3
votes
1 answer

How to force a platform wheel using build and pyproject.toml?

I am trying to force a Python3 non-universal wheel I'm building to be a platform wheel, despite not having any native build steps that happen during the distribution-packaging process. The wheel will include an OS-specific shared library, but that…
3
votes
0 answers

Can't install Pymatgen [Could not build wheels for pymatgen]

I'm trying to install pymatgen but it returns the following error: ERROR: Could not build wheels for pymatgen, which is required to install pyproject.toml-based projects The complete error is as follows: Using cached pymatgen-2021.2.8.1.tar.gz (3.0…
KoenH
  • 31
  • 1
3
votes
0 answers

python build vs wheel packages

I am going through python packaging, build and PyPI cycle. My current understanding is that: using the wheel package, we can create a whl package. the build package can also create a whl package. Which module should be used when? What's the…
Arun
  • 59
  • 5
3
votes
0 answers

Getting requirements to build wheel did not run successfully. Exit code: 1

I have two projects, MyPyLib and MyApp; As the made-up name suggest, MyApp needs a set of tools contained in MyLib. I'm using setuptools as build system. The package MyPyLib, with the pyproject.toml: [build-system] requires = [ "setuptools >=…
Buzz
  • 1,102
  • 1
  • 9
  • 24
3
votes
0 answers

Create multiple Python wheels with Poetry

I would like to create a Python package that wraps functionality provided by a precompiled shared library. I think that the way to go is to create a wheel per OS (and architecture) and publish that. I haven't found a way to make Poetry output…
Ordoshsen
  • 650
  • 3
  • 15
3
votes
1 answer

Structuring Python Repo with multiple applications

I want to structure a Python repo with multiple Spark applications, each one is a separate application. I want to be able to have some common packages which all other can use, and some packages which are standalone spark applications. I need to be…
Or Bar Yaacov
  • 259
  • 3
  • 13
3
votes
0 answers

How to distribute conftest.py and fixtures from a project across different repo/projects?

I could not find a solid example on doing so. Here is the situation. I have several fixtures written in a Python file called my_fixtures.py & a conftest.py containing configuration for the fixtures like below: import pytest from glob import glob …
Unknown
  • 778
  • 1
  • 7
  • 16
3
votes
1 answer

Dataproc Cluster creation is failing with PIP error "Could not build wheels"

We use to spin cluster with below configurations. It used to run fine till last week but now failing with error ERROR: Failed cleaning build dir for libcst Failed to build libcst ERROR: Could not build wheels for libcst which use PEP 517 and cannot…
3
votes
1 answer

How to install pandas 0.24 on a Unix server (Solaris x86) that doesn't reach the internet?

I am trying to install some python packages, for example pandas, on a remote Unix server (Solaris x86) that does not reach the internet. Server runs python 2.7. I can copy files through winSCP tho. I have done a bit of research and found out I can…
Mahmoud Khaled
  • 395
  • 1
  • 3
  • 7
3
votes
0 answers

Python module not found after building wheel

I've got a very simple wheel file I'm building, which seems to build okay, but it relies on a separate config.py module that is called upon import, which is failing after pip installing the wheel file. Research done: Building a python wheel : "no…
auslander
  • 507
  • 2
  • 5
  • 14
3
votes
1 answer

Databricks: cannot import custom python module

I am trying to create a python package, which then I want to install on my databricks cluster. I have tried different approaches, but they all end up with ModuleNotFoundError error. I want to create it out of this data_aggregation directory, which…
Grevioos
  • 355
  • 5
  • 30
3
votes
0 answers

why does wheel generate egg-info folder?

I am using wheel to build my package using this command which is supposed to generate built distribution package: python setup.py bdist_wheel It indeed generated a dist/packagename.whl under root folder but meanwhile it also generated…
derek
  • 9,358
  • 11
  • 53
  • 94