Currently pyflakes installs only single executable which seems to only use version based on system default python. For example, when my default system python is 2.7, /usr/bin/pyflakes points to 2.7 versin and when trying to run against python3 only files, it shows errors for python3-specific behaviour. It would be nice to have pyflakes-2.7, pyflakes-3.3 and etc binaries too.
something is very wrong there $ ls -ld /mnt/gen2/TmpDir/portage/dev-python/pyflakes-0.9.2/image/usr/bin/pyflakes lrwxrwxrwx 1 testuser testuser 31 Oct 9 16:05 /mnt/gen2/TmpDir/portage/dev-python/pyflakes-0.9.2/image/usr/bin/pyflakes -> ../lib/python-exec/python-exec2 which adapts to whichever system python. Can someone replicate this?
(In reply to Ian Delaney from comment #1) > something is very wrong there > What exactly is wrong here?
(In reply to Priit Laes (IRC: plaes) from comment #0) > Currently pyflakes installs only single executable which seems to only use > version based on system default python. > > For example, when my default system python is 2.7, /usr/bin/pyflakes points > to 2.7 versin and when trying to run against python3 only files, it shows > errors for python3-specific behaviour. > > It would be nice to have pyflakes-2.7, pyflakes-3.3 and etc binaries too. Sadly we cannot do this. This should be something upstream needs to implement, like pyflakes --python3.4 foo-3.py As a workaround you can do alias pyflakes2="EPYTHON=python2.7 pyflakes"