-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pypy failures debug #621
Pypy failures debug #621
Conversation
ok, looks like "empty" pkg dirs are not getting removed by os.removedirs() due to pycache dirs |
the installed-files.txt log is showing *.pyc files that were never created, but instead there are pycache folders. |
I wish I knew how to make my local pypy install generate pycache folders? |
posted an email to pypy email list for help on mechanism that determines when/how pypy uses pycache folders. |
@qwcode http://www.python.org/dev/peps/pep-3147/ gives the PEP for this including flowchart According to how we use scripttest we have def _ignore_file(self, fn):
if fn.endswith('__pycache__') or fn.endswith(".pyc"):
result = True
else:
result = super(TestPipEnvironment, self)._ignore_file(fn)
return result Will try look whilst that isn't working. |
got an answer from the pypy list (see below) @pnasrat , this isn't something just the test code needs to ignore. we either have to:
I'm inclined to do #1. Stefano Rivera stefano@rivera.za.net via python.org to pypy-dev
A Debian/Ubuntu pypy does, though. And IIRC, that's what travis CI is It's the pep3147 patches: I thought it would be a useful feature, to make transition between pypy |
the full thread from the pypy list on this. |
probably won't get back to working on a fix til friday. |
although the immediate concern is to have a fix for this in pip 1.2, I'm inclined to believe the debian patch could be improved to not throw off the setuptools --record option like it's doing. I looked at the setuptools source, and it sure likes like the --record option is just walking pkg dir after a byte compile to get the manifest, so it seems the inline *.pyc files are present for a bit? and then removed by the debian patch? not sure. will look confirm later with some debugging. |
ok, good, down to the last 2 failures |
I'm unable to recreate 10 of 12 of the pypy failures locally that travis reports.
posting this just to try to get some logging for what I guess might be happening.
thinking it might be related to os.removedirs() call in util.renames