-
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 install with build script fails on 1.2.0 #4979
Comments
It's worth mentioning that I am running these commands in a virtual environment not managed by |
Hello @matteosantama, this is a duplicate of #2789. fin swimmer |
@finswimmer I've updated my original post the better reflect the problem. What I've identified is related to your linked issue, but different in that it demonstrates a 1.1.x -> 1.2.x regression. Any project that uses a build script this way will be adversely impacted by upgrading to 1.2.x I think this issue should be re-opened and placed in the 1.2 milestone. |
I second this issue. It should be noted that this issue does not happen with |
EDIT: Nevermind was able to reproduce it with your provided configuration. The root cause here is the change in build configuration. You should configure your build script as follows. [tool.poetry.build]
script = "build.py"
generate-setup-file = false Additionally, if you want to generate a |
I'm still having this issue with my docker build. I get the following error "Version 1.2.0 is not supported by this installer!". However I'm using the poetry 1.20 in my local env and it works just fine. Anyone knows how I can fix this. I'm using the following |
This issue tracks |
Thanks for the quick response @neersighted I was able to install poetry. However, I'm running into issues with the path and unable to find poetry in my Docker file. Below is what I'm running. Apologies if I'm posting this on the wrong thread RUN /bin/bash -ci "curl -sSL https://install.python-poetry.org | python -" |
You should set environmental variables in a Dockerfile using the RUN curl -sSL https://install.python-poetry.org/ | python3 - --version 1.2.0
ENV PATH="$HOME/.local/bin:$PATH"
RUN poetry --version Please do not turn off virtualenv creation -- you are likely to run into way more problems for no benefit. The ability to turn off virtualenv creation was intended as a "I know what I am doing" feature for very advanced users -- if you don't know why you need it off, you do not need it off -- see #6398 for a roundup issue on this topic. Finally, please don't use this solved issue for support -- you are sending notifications to everyone who has participated in it for something that is off-topic. Please start a Discussion on the discussion tab, or join the Discord server if you need support from the community. |
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. |
I am trying to run
poetry install
. This configuration works on 1.1.12but fails on 1.2.0a2.
Tested on macOS Monterey Version 12.0.1 Apple M1 Pro
The text was updated successfully, but these errors were encountered: