Summary: | Gentoo Prefix can't store .py[co] files in binpkgs. | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Jeremy Olexa (darkside) (RETIRED) <darkside> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | ferringb, python |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
--exclude=*.pyc --exclude=*.pyo
--exclude=*.pyc --exclude=*.pyo |
Description
Jeremy Olexa (darkside) (RETIRED)
2010-01-13 23:17:39 UTC
Created attachment 216429 [details]
--exclude=*.pyc --exclude=*.pyo
Created attachment 216430 [details, diff]
--exclude=*.pyc --exclude=*.pyo
of course, a missing space.
I find it weird that python_mod_optimize is run /after/ installing in that case. Because that means you don't get them in your VDB, while in fact they're still out there. @python team: how is this supposed to work? (the VDB contents and .py[co] files) If this is all on purpose, I propose to either patch compileall and friends to have a force mode, used by python_mod_optimize, or if that is infeasible, to simply set mtime to Jan 1st 1970 or something, so make sure they will be regenerated. Comment on attachment 216430 [details, diff]
--exclude=*.pyc --exclude=*.pyo
It doesn't make sense to create this different install approach for binpkgs vs source packages. Patch is obsolete. Don't consider it.
python_mod_optimize() already supports '-f' option. -f: force rebuild even if timestamps are up-to-date ok, that's nice to know. Arfrever how do you feel about some packages having .py[co] files in CONTENTS file/VDB, while others don't? Should all have that, or should no package ever list it in VDB? From another perspective, why doesn't python_mod_optimize generate it inside ${D} instead of on the live filesystem after installing? Maybe I'm wrong here, but IIRC python optimized binaries created in $D do not work in $ROOT. Iff this is really true, .py[co] in vdb are plain wrong. prefix bits are irrelevant here, bug too polluted. |