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
1
vote
1 answer

How to use requirements.txt with direct github source in virtual environment

Sometimes I must use python modules from github projects. I can do it in my my_requirements.txt as git+https://github.com/zackhodari/tts_data_tools And I use python virtual environment for experiments because I do not want lots of garbage on my…
1
vote
1 answer

Building a python package to publish in pypi

I am greatly confused with the process of building a python package that I want to distribute on pypi. There are some specific, basic things that I did not understand: What exactly is that gets published? Binaries? Source code? How do I do one or…
1
vote
1 answer

A build-system independent way to get the version from a package source directory

There are many different ways that Python packages manage their version data. Is there a build-system independent way to extract the version from a package source directory? I'm aware of the PEP 517 compatible Python package builder build which does…
Mike T
  • 41,085
  • 18
  • 152
  • 203
1
vote
0 answers

Install .desktop file with setuptools and pyproject.toml

I have a GUI Python app that I'm trying to distribute a desktop entry with. Normally, one would write a setup.py with setuptools that has this in it: from setuptools import setup setup( name = 'myapp', version = '0.0.1', …
1
vote
1 answer

How does pip determine a module's dependencies?

This is likely an issue with my understanding of how python modules are packaged but I am confused as to how pip determines what a modules dependencies are when it installs a module. It appears that different build tools have their own way of…
gowerc
  • 1,039
  • 9
  • 18
1
vote
0 answers

Is there a way to extract project metadata without Pip-installing it?

I am developing a project using Setuptools, and in a couple of places (e.g. scripts, the Sphinx docs) I want to be able to use pieces of project metadata, such as the version, name, authors, etc. I want to avoid hard-coding these values, as they are…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96
1
vote
0 answers

How to do code generation with modern Python packaging?

I've been trying to wrap my head around modern Python packaging, and one of the things I still can't find anything clear about is how to do build-time codegen (so e.g. in-source data files get compiled to code file during build, and those code files…
Masklinn
  • 34,759
  • 3
  • 38
  • 57
1
vote
0 answers

python package with pyproject.toml not availble when installing in editble mode

i have a package (lets call it test-package) that has a pyproject.toml file but also has setup.py if i install it locally with python -m pip install -e . --no-use-pep517 with pip>=20.1.3, the package is installed.python -c "import inspect,…
user1427381
  • 11
  • 1
  • 1
1
vote
1 answer

PEP 517 method to specify build requirements is not working in poetry

How can I specify the "build system" requirements in poetry? I think PEP517 deals with this, but I can't get it to work. I am using poetry to manage my project. One of my project's dependencies is built from source, and building the dependency fails…
John
  • 451
  • 7
  • 17
1
vote
0 answers

PyNaCl doesn't want to install during PyGithub instalation(wheel building doesn't finish)

I have already tried: running the command as sudo (as you can see) downgrading pip installing make and other build-essential installing pynacl alone installing it without using PEP 517 (it didn't install, just output an error that it needs PEP…
bartx 3
  • 41
  • 5
1
vote
4 answers

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

so I have checked every post that relates to this issue and I still can't seem to make this work. I am trying to install tulipy using pip on a Windows machine. I've installed numerous other pip based programs with no issues. I tried reinstalling VS…
LuckyMcBeast
  • 73
  • 1
  • 8
1
vote
0 answers

word2vec installation Failed building wheel Could not build wheels for word2vec which use PEP 517 and cannot be installed directly

I'm trying to pip-install word2vec and I get these errors: ERROR: Failed building wheel for word2vec ERROR: Could not build wheels for word2vec which use PEP 517 and cannot be installed directly
NMaria
  • 38
  • 4
1
vote
0 answers

Can't install ecapture on Python3.9 -- Fails building wheels for scikit-image

I am using the latest version of Python3, and trying to install through the IntelliJ Terminal. I have tried creating different env's, I updated all the possible packages: pip, wheel, scipy, numpy, setuptools, and even downloaded scikit-image…
redye
  • 11
  • 3
1
vote
0 answers

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

When running pip install -U discord.py in the command prompt I get this error: ERROR: Command errored out with exit status 1: command: 'c:\users\christian walters\appdata\local\programs\python\python39\python.exe' 'c:\users\christian…
swimfreak
  • 11
  • 1
1
vote
0 answers

Failed to install Qiskit through Anaconda

Windows 10 Anaconda Python 3.7 pip 20.1.1 I trid to install qiskit on Anaconda Prompt: pip install qiskit and it reports error while builidng wheels for cvxpy, scs, ecos: Building Wheels for collected packages: cvxgy, scs Building wheel for…
Chrsi
  • 93
  • 5