On May 17, 2013, at 12:10 AM, Thomas Wouters wrote: >The 'unknown type codes' can also be explained if the two processes writing >to the .pyc files are *different Python versions*. As you may recall, at >Google we used to use modified Python interpreters that used '.pyc-2.2', >'.pyc-2.4', etc, for the pyc extension. That was because otherwise >different Python versions would keep overwriting the .pyc files of shared >Python modules, and "at Google scale" it caused all manner of problems... I >guess Ubuntu is approaching Google scale ;-)
I'd like to think so. :) But I don't think this is part of the equation. For Python 2 on Debian/Ubuntu, we use an elaborate symlink farm to keep all pyc files in Python-version-specific directories. The stdlib files are already segregated, but the symlink farm takes care of package installs. Note that the symlinks are to the .py files, not the pyc files. Fortunately we almost don't care about this anymore. We dropped 2.6 in Ubuntu a while ago and we'll very likely drop 2.6 in Debian Jessie. We don't care about any Python 3s earlier than 3.2, and getting rid of the symlink farm was the primary motivator for PEP 3147. Cheers, -Barry
signature.asc
Description: PGP signature
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com