-
Notifications
You must be signed in to change notification settings - Fork 3.1k
pip not removing pkg dirs that contain __pycache__ dirs #638
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
Comments
important discussion related to this: http://bugs.python.org/issue11254 |
posted question to distutils list to get some context: waiting to see if people have input. |
getting the byte-compiled filename in 3.2+ the debian patched version of pypy also has imp.cache_from_source so I think the the fix here is just generalizing the workaround we already have for debian pypy (#630) to use |
btw, the change from pip1.1 that exposed this is pull #437, which I think is a good change. |
FYI, a pull is in the works for this. |
fix for #638 (__pycache__ file removal)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
the tip version of pip is not removing pkg dirs that contain
__pycache__
dirssee pull #637 where I generate a failure for py32 by adding an import that generates the
__pycache__
folder before the uninstall is attempted.a similar issue came up for the debian package of pypy (that travis uses) which patches pypy to generate
__pycache__
folders. there's currently a workaround for that case (see #630). possibly, we can fix both of these cases with one general fix.I don't see this behavior locally using pip1.1 with py32, so something changed, but not sure what yet.
pip is attempting to remove the pkg using installed-files.txt which is generated using
setup.py install
with--record
combined with--single-version-externally-managed
. The log just contains inline *.pyc files. If you trace it down, you find what's ultimately being called to generate the compiled filenames is:setuptools.command.install_lib._bytecode_filenames
which has no__pycache__
awareness.The text was updated successfully, but these errors were encountered: