-
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
tool.poetry.scripts fails because of a space in path to env #3643
Comments
Possibly related clues (in other words, this may be much bigger than Poetry, but hopefully workarounds exist): |
Using the default virtualenv folder instead of the project's root directory works.
Create the virtualenv inside the project's root directory leads to:
Using the default virtualenv folder looks much better:
|
I've also encountered this issue on Windows using a virtualenv local to a project directory with space(s) in the pathname Files to reproduce here, along with the resulting Script entries: https://gist.github.com/sco1/7429d50142960e375e81c0d9d8103fc9 I've also included a sample setup.py/cfg that successfully installs the entry point (with
|
-vvv
option).Issue
I followed two articles of Jonathan Bowman:
https://dev.to/bowmanjd/getting-started-with-python-poetry-3ica
https://dev.to/bowmanjd/build-command-line-tools-with-python-poetry-4mnc
In my case the project folder contains a space, which most likely is the reason for the problem.
The entry in pyproject.toml is:
The result of calling "greet" is:
Having a look in the shebang line of greet shows of course the space in the path:
The shebang line is created by poetry.
A possible workaround with a symlink to eliminate the space fails:
poetry "sees" the path but ignores the symbolic link.
The text was updated successfully, but these errors were encountered: