nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 396 forks source link

Installing nose creates wrong version specific script #1009

Open MadWombat opened 8 years ago

MadWombat commented 8 years ago

When I install nose using pip (pip3 install --upgrade nose) two scripts are created in /usr/local/bin. nosetests and nosetests-3.4. The python3 version I have installed (and the one pip3 is using) is 3.5.2. I do not have 3.4 installed at all. I am guessing 3.4 is a hard-coded value somewhere.

ferrouswheel commented 6 years ago

The version string for the filename is fetched here and is used a little bit further down in that file.

A guess a what is happening is that this somehow doesn't get evaluated when installing a whl package.

I have confirmed this by doing:

$ python3 --version
Python 3.5.2
$ pip3 install --user nose
...
$ ls  ~/.local/bin/nosetests-*
/home/ubuntu/.local/bin/nosetests-3.4
$ pip3 uninstall --user nose
...
$ pip3 install --user nose --no-binary :all:
...
$ ls  ~/.local/bin/nosetests-*
/home/ubuntu/.local/bin/nosetests-3.5
ferrouswheel commented 6 years ago

Related is PR #1074 which adds the nosetests3 executable script.