Skip to content

poetry sync will not switch package from non-editable to editable #10666

@wdhwg001

Description

@wdhwg001

Description

Please let me know if this needs to be split into two issues.

I have some packages that is deep editable. It means:

Package A has a develop = true dependency, which is Package B.

Package B has a develop = true dependency, which is Package C.

I notice that when creating venv for Package A, Package C is not installed as an editable pip dependency.

Workarounds

The only workaround is to explicitly add Package C as a develop = true dependency of Package A. But after running poetry lock and poetry sync, nothing really happens, and I have to manually remove the package using pip and sync again.

Poetry Installation Method

pipx

Operating System

macOS 15.7.2

Poetry Version

2.2.1

Poetry Configuration

cache-dir = "/Users/USER/Library/Caches/pypoetry"
data-dir = "/Users/USER/Library/Application Support/pypoetry"
installer.max-workers = null
installer.no-binary = null
installer.only-binary = null
installer.parallel = true
installer.re-resolve = true
keyring.enabled = true
python.installation-dir = "{data-dir}/python"
requests.max-retries = 0
solver.lazy-wheel = true
system-git-client = false
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"
virtualenvs.prompt = "{project_name}-py{python_version}"
virtualenvs.use-poetry-python = false

Python Sysconfig

sysconfig.log
Paste the output of 'python -m sysconfig', over this line.

Example pyproject.toml

Poetry Runtime Logs

not sure if it's needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions