Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testincessantly doesn't run on python3 by default #1

Open
orborde opened this issue Jul 30, 2017 · 2 comments
Open

testincessantly doesn't run on python3 by default #1

orborde opened this issue Jul 30, 2017 · 2 comments

Comments

@orborde
Copy link

orborde commented Jul 30, 2017

The default Python toolchain on my system is python2, not python3. testincessantly blindly assumes that the default Python is 3 and blows up if that's not the case.

After I run pip install testincessantly, I get a ~/.local/bin/testincessantly that looks like this:

#!/usr/bin/python

# -*- coding: utf-8 -*-
import re
import sys

from testincessantly.__main__ import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

It would be really nice if that first line directly invoked python3.

@orborde
Copy link
Author

orborde commented Jul 30, 2017

(or maybe pip2 should complain that I'm supposed to be using pip3 instead?)

@orborde
Copy link
Author

orborde commented Jul 30, 2017

Yep -- some pip version restriction seems like the right choice. Here's the hashbang line I get when I pip3 install testincessantly:

#!/usr/bin/python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant