-
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
Create a .exe file using Default Installer #3534
Comments
The This is a bit tricky because Is Alternatively, if-and-when Poetry is using Fixing this would also resolve #2030. |
Well, sorry for this late response. I think it would be better to use distlib because it provides some API. but still unsure how to... |
@naveen521kk happy to look at clearer proposal on how we might do this. If using Since the bootstrap script is intended to work with no or limited dependencies, I would be hesitent to even require However, if we indeed proceed to making changes, they will need to be on top of #3706 as that will be the new bootstrap mechanism. It might also be a good idea to verify if the problem goes away by virtue of the new changes, specifically how Note: I am not recommending either of the following options, but simply identifying a way forward in the discussion. Option 1If the new bootstrap mechanism does nto solve the issue, a draft PR to that branch or mainline (once merged) might be a good way to consider any changes required. Option 2Another option (more effort) is to setup a windows installer for poetry (this might require a new issue and proper discussion). I am not even sure if this is an option that the community wants, and I do not develop on windows myself to comment qualitatively. I am also unsure how much effort this would be to maintain going forward either. If we go down this path, an outline of steps required would be:
|
The new bootstrapping method (see #3706) will solve this. Basically, the new method uses |
Yes,
I would say doing this only on Windows is fine actually because that's the place where an exe is required. |
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. |
Feature Request
First, using the default installer as specified in the documentation, https://python-poetry.org/docs/#windows-powershell-install-instructions, it creates a
.bat
file in%USERPROFILE%\.poetry\bin
folder. I want it to create anexe
file instead of a batch file.It can be done using the way
setuptools
does it. Essentially, it would be to findcli.exe
orcli-64.exe
and rename it topoetry.exe
and create a file calledpoetry-script.py
instead of the currently present,poetry
(without any extension) file.Usually,
setuptools
is installed by default. If it not, the.tar.gz
for windows, can include a copy ofcli.exe
andcli-64.exe
which can be easily compiled using, https://github.com/pypa/setuptools/blob/main/launcher.cNote:
poetry-script.py
needs to have proper shebang with full paths.The text was updated successfully, but these errors were encountered: