diff options
Diffstat (limited to 'bumper')
-rwxr-xr-x | bumper | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -113,6 +113,11 @@ class Bumper(cliapp.Application): if (stat.S_IMODE(st.st_mode) & stat.S_IXUSR) == stat.S_IXUSR: prefix = ['./setup.py'] + # Is Python3 mentioned? If so, assume setup.py needs it. + text = open('setup.py').read() + if prefix is None and text and 'python3' in text: + prefix = ['python3', 'setup.py'] + if prefix is None: prefix = ['python', 'setup.py'] |