-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During poetry build
an installed binary from build-system.requires
is not available
#9743
Comments
duplicate #8807 presumably |
To debug this, I've added a print and a sleep in the build script:
Running
And (while the install command is hanging) I see the file Running
There is no
|
Yeah, looks like it. I'm updating my comment above once more, then we can close this as duplicate if that's better. EDIT: I just wanted to emphasize the requirements are honored, in this example
...to |
Interesting. Installing System
So the binary from the project But activating the |
@RobertoRoos would you be able to put your discoveries into one message and post it in the #8807 issue, so that we can close this? |
See, see summary in #8807 (comment) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
When running
poetry build
to build a package distributable, installed executable are not available on PATH.This behavior is different during
poetry install
: here binaries from build requires are available during build.I have the following build script:
The
pyproject.toml
is below.I get an error (see below) during build, but not during install.
Workarounds
The build behavior is correct using
python -m build
.So a workaround could be running:
Another workaround is to install the package providing the binary to the project
venv
, and running Poetry from there:Poetry Installation Method
install.python-poetry.org
Operating System
Windows 10
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: