On Thu, Feb 21, 2013 at 8:37 PM, Wuggy Foofie <[email protected]> wrote:
> Hi, > > Any chance you could make the OpenBSD Python port / package do this > automatically if there are no other Python installs on that machine? > > # ln -sf /usr/local/bin/python2.7 /usr/local/bin/python > # ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 > # ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config > # ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc > > Users having Python installed as a dependency as part of some other port / > package, might not catch the message instructing them to run these > commands, and as such might have to spend hours debugging only to find out > their Python binaries wern't linked properly in the first place. > > Yes, I know it's bad practice not to pay attention to everything that goes > on on the screen, but it's also bad usability to not install a package when > the user expects it to install. > > I hope we can come to some sort of compromise here. > I don't think what you are proposing can work. Order of installation should not matter, and what you are proposing would make it matter. If I install python 2.5 and then 2.7 and then python 3.2, it should result in the same files as installing python 3.2, then 2.5, then 2.7. Making order of installation matter is bad usability. The ports system installs programs written in python such that they reference the specific python binary they use, so as long as you use the provided packages, things just work. If you want to venture outside packages, it's assumed that you know enough to run the commands pkg_add displays. Jeremy
