-
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
Poetry build using wrong virtualenv when installed with pipx? #3054
Comments
Related issue is #2789 The python executable detected seems to be wrong as you have indicated. It should use the project venv. |
Looks good. It's using the correct venv:
I take it that I |
Yes, we do not handle build-system requirements automatically at the moment, and that is intentional. #2789 is open to discuss this. Build scripts will be better supported going forward, right now it is till a hack. The first step will be to, ensure that the PEP 517 requirements get respected (python-poetry/poetry-core#58), second we need to get the build happening in isolation, maybe using the
For projects with build scripts that do not require poetry to publish the wheel this is fine and probably easier since you do not want to install dev dependencies just for a wheel build. But this situation will get better in the next minor release. |
Thanks for that reply. I really appreciate it. Makes a lot more sense now. I barely understood the build systems before and was rather unsure about what exactly we had done to get Cython working with Poetry for our project. But I'm now understanding 517 a lot more and how Poetry does things. Sounds like a lot of good things in store as the project evolves. (And because of not totally understanding it all, I got a little irate trying to debug stuff yesterday and blamed it on Poetry in a call session with a colleague. Sorry about that. We really do appreciate the project and how much it's helped our package development.) |
Hah. That happens. A good tool is meant to be invisible, when it is not people get mad/frustrated. In any case, happpy that you are finding Poetry benifitial. Keep the bug reports (and even contributions) coming in. If you have questions regarding the build system etc, the discord server might be a good place to start. |
I got a similar error when using
The |
Why is it wrong? I suspect.if you did |
Hi, sorry for missing details. The TOML is here. The failed message indeed is
I run a fresh install for this TOML and all the packages except for I run After the |
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. |
System Info
Setup
Installed 1.1.0 with
pipx
:Have a clean virtualenv with pyenv and Python 3.8.5:
What happens
Building a wheel throws an error saying
numpy
isn't availableThe logs say that poetry has detected the virtualenv and will use it:
But the called process uses the isolated pipx environment, which of course doesn't have
numpy
What's expected to happen
/Users/alexifm/.pyenv/versions/3.7.7/envs/test
Maybe I'm using Poetry wrong and it shouldn't be used in a clean environment but run as part of a development process in a worn-in environment where
poetry install
has been run.That said, I still don't see why the pipx environment is being used.
The text was updated successfully, but these errors were encountered: