[py-dev] py.test3, py.test-jython, py.test-pypy ...
holger krekel
holger at merlinux.eu
Sun Dec 20 23:22:14 CET 2009
Hi Gordon,
On Mon, Dec 21, 2009 at 09:05 +1100, Gordon Wrigley wrote:
> Holger,
>
> So I currently have python, python2, python2.5 and python2.6 available
> on my machine. 2.5 and 2.6 are actual executables, the other two are
> symlinks to python2.6.
>
> What py.test executables will I get?
python setup.py install -> py.test
python2 setup.py install -> py.test2
python2.5 setup.py install -> py.test2.5
python2.6 setup.py install -> py.test2.6
> My preference would be for it to mirror the python ones. I don't care
> about python2 so much, but having it mirror the other 3 would be good.
seems to match. Maybe i also additionally always do a "py.test" proper
so that people using the current way are not surprised. That would mirror
how 'easy_install' is installed (it has a '-' dash in the middle though which
i find suboptimal tab-completion-wise)
On Windows it looks slightly different at the moment because there are usually
no "pythonXYZ" differentiations but only different c:\\PythonXYZ\Python.exe files.
As there is no common "bin" dir i guess using "py.test" always there is kind of
fine?!
holger
>
> Gordon
>
> On Mon, Dec 21, 2009 at 9:00 AM, holger krekel <holger at merlinux.eu> wrote:
> > On Sun, Dec 20, 2009 at 22:56 +0100, Laura Creighton wrote:
> >> In a message of Sun, 20 Dec 2009 22:48:52 +0100, holger krekel writes:
> >> >Hi all,
> >> >
> >> >i just committed a change which i'd release together with a bunch
> >> >of other things as py-1.1.2. It makes py.test install as
> >> >
> >> > py.test # if python executable has basename 'python'
> >> > py.test3 # if python executable has version_info >= (3,0)
> >> > py.test2.x # if python executable has basename 'python2.x' (x in
> >> >'4567')
> >> > py.test-jython # if we are running on jython2.5
> >> > py.test-pypy # if we are running on pypy
> >> >
> >> >does this make sense to you, objections? It does for me because
> >> >i can more easily run tests with various interpreters. But
> >> >it means if you run "python2.4 setup.py install" you will not
> >> >get a 'py.test2.4' only, and no 'py.test' proper.
> >> >
> >> >cheers,
> >> >holger
> >>
> >> Ah, you mean you _will_ only get a py.text2.4 ?? or ...
> >
> > yes, currently it would be 'py.test2.4' only if the executable is
> > named "python2.4". If it's named "python" and has version_info==(2,4,..)
> > it would still install as 'py.test'.
> >
> > holger
> > _______________________________________________
> > py-dev mailing list
> > py-dev at codespeak.net
> > http://codespeak.net/mailman/listinfo/py-dev
> >
> _______________________________________________
> py-dev mailing list
> py-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
>
--
More information about the py-dev
mailing list