Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153607 - python updates requiring rebuilding
Summary: python updates requiring rebuilding
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 14:08 UTC by devsk
Modified: 2006-11-02 15:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description devsk 2006-10-31 14:08:43 UTC
This is more like request for comment, rather than a bug. Currently, a major version upgrade of python requires users to run python-updater to upgrade a bunch of apps that were installed with previous. Wouldn't it be easier to export PYTHONPATH thru env.d with values like "/usr/lib/python2.4/site-packages:/usr/lib/python2.3/site-packages". Keeping the newer version ahead makes sure that the latest versions of the modules are picked up. All that the ebuild needs to do is to update a /etc/env.d/ file with the latest version ahead of the previous versions in the env var or create a new file if no previous version is found. No more recompiles of py* packages and no more broken builds (like pygtk not found, when it is installed) for people who didn't read the fast scrolling warning messages.

I wonder why its not done currently. Am I missing something?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-02 04:50:05 UTC
(In reply to comment #0)
> I wonder why its not done currently. 

Because it won't work... ;)
Comment 2 devsk 2006-11-02 07:28:54 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > I wonder why its not done currently. 
> 
> Because it won't work... ;)

why wouldn't it? I have used PYTHONPATH in the past when I was not using gentoo and doing manual installs on the "other" unix, and it worked fairly well. Can you please elaborate?
Comment 3 Marien Zwart (RETIRED) gentoo-dev 2006-11-02 15:53:48 UTC
- compiled (not pure python) extensions will explode in various interesting (often segfaulty) ways. One of those compiled modules is pycrypto, which is used by portage for checksums. Segfaulting portage is bad.
- the newer python refuses to use .pyc and .pyo files written by the old python and vice versa. If you run as a normal user this means a slowdown if you use the "wrong" python (a small one, but noticable for things that do a lot of importing and little other work, like somescript --help). If you run something as root that ends up importing one of those modules it will trigger a .pyc/.pyo rewrite, which is nasty.

Closing WONTFIX.