You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when adding a local dependency as editable the installation is not following the package.to option.
to reproduce the issue, please clone this repo: https://github.com/salembream/editable_bug_poetry_
then test as below
cd check_packages
poetry install
poetry shell
python ./run_check.py
notice the non_editable package works fine, while the editable one fails.
Hello from non_editable_module
Traceback (most recent call last):
File "D:\temp\testeditable\check_packages\run_check.py", line 5, in <module>
from dist_name.editable.editable_module import editable_module
ModuleNotFoundError: No module named 'dist_name.editable'
Workarounds
not directly thru poetry, but I think we can have the required behavior by using symlinks when installing editable dependency which defines package.to
Have similar problem.
If I install package as dependency then it is installed in directory spesified by package.to,
but if I install it as main package by poetry install - it's installed in site-packages/[package-name], but expected directory is - site-packages/[package.to]/[package-name]
thanks for confirming,
my use case actually must be a dependency, e.g. when developing a library and another project using it.
which I think is a very reasonable use case.
also can help when developing a package and one of its dependencies seamlessly.
Description
when adding a local dependency as editable the installation is not following the
package.to
option.to reproduce the issue, please clone this repo:
https://github.com/salembream/editable_bug_poetry_
then test as below
notice the non_editable package works fine, while the editable one fails.
Workarounds
not directly thru poetry, but I think we can have the required behavior by using symlinks when installing editable dependency which defines package.to
Poetry Installation Method
pipx
Operating System
Windows 11
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: