Questions tagged [pep517]

Questions about the build-system independent source tree format proposed in PEP 517

This tag may be used for questions about the usage of the tools implemented as part of the PEP, about the new source code layout, or about the PEP itself.

46 questions
65
votes
1 answer

How to write a minimally working pyproject.toml file that can install packages?

Pip supports the pyproject.toml file but so far all practical usage of the new schema requires a 3rd party tool that auto-generates these files (e.g., poetry and pip). Unlike setup.py which is already human-writeable, pyproject.toml is not…
Keto
  • 1,470
  • 1
  • 12
  • 25
41
votes
9 answers

Could not build wheels for _ which use PEP 517 and cannot be installed directly - Easy Solution

I am trying to install a package which uses PEP 517. The newest version of Pip won't allow me to install due to an error involving wheel building for 517. In the past, I've solved this issue by downgrading Pip, installing the package and Upgrading…
Sean Payne
  • 1,625
  • 1
  • 8
  • 20
11
votes
1 answer

How does one install a setup.cfg + pyproject.toml python project in editable mode with pip?

Is it possible to halve your cake and eat it too: can one install (via some mechanism) a project with the following structure: pyproject.toml setup.cfg src/... scripts/... In editable mode, like one could with a standard setup.py project: python3…
Chris
  • 28,822
  • 27
  • 83
  • 158
7
votes
6 answers

Can't install h5py

I am trying to h5py on Windows10 64bit, Python 3.8.5, Pip 20.2.4. Used this command pip install h5py But this throws an error ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly Looks like it's quite known…
christian
  • 445
  • 1
  • 3
  • 12
5
votes
2 answers

Passing --tag-build or --tag-date to setuptools PEP 517 builder

I am trying to create a snapshot/daily build of my Python package, using Setuptools and Build (the PEP 517 build module). I have tried adapting this section of the Setuptools documentation:…
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
3 answers

Error installing apache-airflow: "Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly"

I'm trying to find some help installing apache-airflow. I am on MacOS 10.15.7, Python version 3.8.2, and I keep getting an error: ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly I have tried using…
user15305521
  • 33
  • 1
  • 3
3
votes
4 answers

ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly

Im using the latest Version of Pycharm: When i Enter this command: pip install -U discord.py[voice] This Error Message will come: ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly What should i do?
Joel_1930
  • 33
  • 1
  • 1
  • 6
3
votes
1 answer

installing airflow on mac virtualenv gives: Could not build wheels for pandas which use PEP 517 and cannot be installed directly

In virtual environment I'm trying to install apache-airflow. macOS: 10.13.6 Python: 3.9 (airflow_venv) $ sudo -H pip install apache-airflow==1.10.12 --constraint…
2
votes
0 answers

override pyproject.toml settings on command line

When building a python project using the python build module, is there a way to override settings in pyproject.toml on the command line? For instance, suppose pyproject.toml contains: [build-system] build-backend = "foo" I would like to know if it…
Juan
  • 1,204
  • 1
  • 11
  • 25
2
votes
1 answer

How to customize python installation in both normal and develop mode? (Why `setuptools.command.develop` is not called in develop/editable mode?)

I am building a example_package on which I would like to customize the installing process in both normal and develop mode. Here is the project structure: . ├── cpp │   ├── CMakeLists.txt │   └── helloworld.cpp ├── pyproject.toml ├── setup.py └──…
Lion Lai
  • 1,862
  • 2
  • 20
  • 41
2
votes
0 answers

Python Imports Keep Failing

I recently wrote a package which is on 1.2.9 but when trying to import it using pip install rolimons Python tries to import 1.2.9 which fails and moves on until version 1.1.3 which is the only version that doesn't error out. Here is the…
walker
  • 444
  • 2
  • 12
2
votes
0 answers

instaling cmake getting error: "Could not build wheels for cmake which use PEP 517 and cannot be installed directly"

I own a raspberry pi with centos 7 and try installing opencv. to build the dependencies it seems that I need to install cmake but i get the message: Could not build wheels for cmake which use PEP 517 and cannot be installed directly. I have tried…
2
votes
0 answers

ERROR: Could not build wheels for multidict which use PEP 517 and cannot be installed directly

When I run python 3 -m pip install -U discord.py I get errors (see below) saying that the wheels could not be built. I have tried pip install wheel and it returns Requirement already satisfied: wheel in /usr/local/lib/python3.7/site-packages…
111homell11 1
  • 21
  • 1
  • 2
1
vote
0 answers

Setuptools -- Replacing Manifest.in with pyproject.toml

Does setuptools support replacing the Manifest.in file, which specifies files that should only be included in the sdist distribution with a declaration in pyproject.toml?
Spitfire19
  • 260
  • 1
  • 2
  • 11
1
2 3 4