On Sun, Sep 20, 2009 at 11:57 PM, Arfrever Frehtes Taifersar Arahesis <arfre...@gentoo.org> wrote: > There is a difference between Python scripts and Python modules. >
Yes, I'm well aware of the difference between them. [snip] > Python modules shouldn't have shebang. Python modules are intended to > be imported from Python scripts or other Python modules. Any shebang > in a Python module is ignored, when this module is imported using 'import' > statement. > You forget that the search path for both installs is different, and hence modules installed for python-3 cannot be found/used by scripts using python-2; which results in the dependency hell; which was the basis for my whole argument. > >> Seriously, if you *really* *really* want python-3 stable, it should: >> >> 1) NOT show up in `eselect python` to set as the default interpreter > > When a user wants to work for an hour with a script requiring Python 3, > and doesn't want to use e.g. Portage during this time, then it is > reasonable to run 'eselect python set python3.1' once and be able > to just use './script.py' instead of having to type 'python3.1 script.py' > every time. Next this user can switch active Python back to 2.6. > The user would rather just edit the shebang for an hour rather than become root, eselect and get back. Only us weird system-fudgers always have a root shell running, most people rarely do. >> 2) NOT be a dependency of any package in stable > > It isn't implementable without having to change dependencies in hundreds > of packages. There is nothing wrong in having Python 3 installed which > would use small amount of disk space. > You're twisting what I mean. You know what I mean -- packages *needing* python-3. -- ~Nirbheek Chauhan GNOME+Mozilla Team, Gentoo