Skip to content
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

Restore ability to uninstall distutils packages #3389

Merged
merged 1 commit into from
Jan 21, 2016

Conversation

ianw
Copy link
Contributor

@ianw ianw commented Jan 20, 2016

This is a partial revert of 6afc718
to restore the ability to overwrite distutils installed packages.

It is not elegant, but some projects (such as OpenStack's devstack)
rely on overwriting packages installed via the system package manager.
These packages can't be removed because they are dependencies for
parts of the base system, but many of the things devstack needs to run
requires later dependencies. For historical reasons it's not easy to
fix this into a virtualenv, etc, all at once.

If distributions move to setuptools based packages, this problem might
fix itself.

Review on Reviewable

This is a partial revert of 6afc718
to restore the ability to overwrite distutils installed packages.

It is not elegant, but some projects (such as OpenStack's devstack)
rely on overwriting packages installed via the system package manager.
These packages can't be removed because they are dependencies for
parts of the base system, but many of the things devstack needs to run
requires later dependencies.  For historical reasons it's not easy to
fix this into a virtualenv, etc, all at once.

If distributions move to setuptools based packages, this problem might
fix itself.
@ianw
Copy link
Contributor Author

ianw commented Jan 20, 2016

As I mentioned, if distributions moved to a setuptools based package, that listed all the installed files, removing this option might be basically painless because nobody would be using it. Would this scare be enough to make progress on this? I don't know. \

BTW, I'm not really defending devstack's approach, because it's easy to point out why it's not right ... but, with bugs such as [1] and prior changes such as [2] we've got things fairly stable with this approach.

also i see this is being discussed #3384

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1255206
[2] #3037

dstufft added a commit that referenced this pull request Jan 21, 2016
Restore ability to uninstall distutils packages
@dstufft dstufft merged commit a2fdaef into pypa:develop Jan 21, 2016
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants