Summary: | app-eselect/eselect-python: override python version from environment | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | kfm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin von Gagern
2011-05-09 10:00:43 UTC
There is one simple way: elmer ~ # python -V Python 2.7.1 elmer ~ # alias python=/usr/bin/python3.1 elmer ~ # python -V Python 3.1.3 (In reply to comment #1) > There is one simple way: > elmer ~ # alias python=/usr/bin/python3.1 Aliases are for the current shell only. They won't influence wrapper scripts, and they won't influence python processes invoked (directly or indirectly) by some other python script, or any other process. Therefore the solution has to be based on environment variables, which are inherited, not on aliases. Well, the new ebuilds based on python-exec always respect EPYTHON. Is that enough to consider this one fixed? (In reply to comment #3) > Well, the new ebuilds based on python-exec always respect EPYTHON. Is that > enough to consider this one fixed? Is it documented? If so, I'm satisfied and hope packages will move to those new scripts soon. On my system, cython already has moved, twisted not yet. Well, python-r1 is now fully in charge, so closing this as FIXED. |