Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235115 - app-misc/releaseforge-1.3: optimized python modules (*.pyo) cause file collisions
Summary: app-misc/releaseforge-1.3: optimized python modules (*.pyo) cause file collis...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 15:06 UTC by Martin von Gagern
Modified: 2010-02-10 18:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pass --optimize=0 to setup.py (bug235115a.patch,322 bytes, patch)
2008-08-18 15:09 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2008-08-18 15:06:18 UTC
Updating releaseforge from 1.1 to 1.3 failed for me due to package collisions. Yes, I know I could disable them, but that's more of a workaround than a fix.
Instead I looked at bug 176612 which seems to be a similar case. There the conclusion was to disable the generation of the *.pyo files in the ebuild.

The reason why 1.3 builds *.py where 1.1 did not is the addition of the line "optimize = 1" to the [install] section of setup.cfg. Solutions would be to either patch that line or, easier still, pass --optimize=0 to setup.py via distutils_src_install. I'll attach a patch to the ebuild.

You might also consider always passing that option in distutils.eclass, if indeed optimized versions should never compiled by the ebuild itself. I don't realls understand this whole setup of Python in Gentoo. Seems like an awful lot would happen outside the sandbox, and I don't know why.

You could also say that the *.pyo files should in fact get installed by the ebuild itself. In this case, you should at least offer a message to the user that collisions for these files are to be expected, and how to disable collision checks for just that one ebuild.
Comment 1 Martin von Gagern 2008-08-18 15:09:02 UTC
Created attachment 163215 [details, diff]
pass --optimize=0 to setup.py
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 18:30:41 UTC
releaseforge was removed from Portage at the same time with PyQt, so closing...