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

check_header function should signal what is exactly wrong #78

Open
boegel opened this issue Feb 26, 2018 · 0 comments
Open

check_header function should signal what is exactly wrong #78

boegel opened this issue Feb 26, 2018 · 0 comments

Comments

@boegel
Copy link
Member

boegel commented Feb 26, 2018

I got this error when adding bin/vsc_env.py to vsc-config:

test_importscripts (vsc.install.commontest.CommonTest)
Try to import each python script as a module ... INFO: run_tests from base dir /Users/kehoste/work/vsc-config (using executable /Users/kehoste/work/vsc-config/setup.py)
INFO: generated list: ['bin/vsc_env.py']
INFO: generated scripts list: ['bin/vsc_env.py']
INFO: get_header for script
INFO: python in shebang, forcing env python (header modified)
INFO: run_tests from base dir /Users/kehoste/work/vsc-config (using executable /Users/kehoste/work/vsc-config/setup.py)
INFO: found match url [email protected]:hpcugent/vsc-config in /Users/kehoste/work/vsc-config/.git/config
INFO: found match name vsc-config in /Users/kehoste/work/vsc-config/.git/config
INFO: reg found: ('github.com', 'hpcugent/vsc-config')
INFO: get_name_url returns {'url': 'https://github.com/hpcugent/vsc-config', 'name': 'vsc-config', 'download_url': 'https://github.com/hpcugent/vsc-config/archive/ALL_VERSIONS.tar.gz'}
INFO: found license /Users/kehoste/work/vsc-config/LICENSE with md5sum 4c917d76bb092659fa923f457c72d033
INFO: Found license name ARR and classifier License :: Other/Proprietary License
FAIL

The FAIL doesn't give any hint on what is wrong exactly, in the end it turned out that the problem was that /usr/bin/python was being used as shebang line rather than /usr/bin/env python, which is signalled by the python in shebang line above.

Problems like this should stand out better so you don't have to be a detective to figure out what the actual problem is.

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