poetry-core icon indicating copy to clipboard operation
poetry-core copied to clipboard

Switch to in-tree vendoring instead of patching the sys.path

Open Secrus opened this issue 1 year ago • 4 comments

Resolves: python-poetry/poetry#8157

Secrus avatar Aug 30 '24 20:08 Secrus

Did you try running make vendor/update?

I expect that will reveal things you might have missed, and also give a hint as to whether the maintenance burden this brings is likely to be painful or not.

dimbleby avatar Aug 31 '24 00:08 dimbleby

@Secrus I am not sure this is trivial to maintain long term. While the issue mentioned for plugins is not ideal, I get the distinct feeling that there are sufficient workarounds such that plugins could maintain the workarounds more easily than us having to carry the burden of maintaining this.

Just for reference the original discussion around this is at https://github.com/python-poetry/poetry-core/pull/25#discussion_r414052082.

Note that this is before plugins were a thing.

abn avatar Nov 21 '24 16:11 abn

Also, if I recall correctly, this change also was enabling downstream OS distro package maintainers to remove (or patch) vendor directories to re-package according to their requirements. This change will revert us back to a situation where they will have to start carrying patches.

abn avatar Nov 21 '24 16:11 abn

Also, if I recall correctly, this change also was enabling downstream OS distro package maintainers to remove (or patch) vendor directories to re-package according to their requirements. This change will revert us back to a situation where they will have to start carrying patches.

Right now it puts us at a disadvantage, cause dependencies from the core override the poetry dependencies, which is a failure waiting to happen. The same happens for plugins (as noted in the issue this addresses). I hate to be selfish here, but I prefer selfish over errorous.

Secrus avatar Jan 06 '25 14:01 Secrus