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

Use portable shebangs #147

Merged
merged 1 commit into from
Jun 15, 2017
Merged

Use portable shebangs #147

merged 1 commit into from
Jun 15, 2017

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Jun 15, 2017

May help with #73 (comment)

@@ -1,4 +1,5 @@
#!/usr/bin/env python

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the noise. I made a global search and replace for shebangs and even the "good ones" got an extra line in the change.

@@ -1,4 +1,4 @@
#!/usr/bin/python
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one will always call on the system Python causing some grief to users trying to use vens or conda.

@@ -1,3 +1,4 @@
#! /home/ubuntu/miniconda/envs/wofpy/bin/python
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is trying to call a miniconda installation from a user named ubuntu in an env named wofpy.
The changes another user besides @lsetiawan to have that configuration is quite slim 😄

PS: we really need to focus on more tests to catch these things early!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocefpaf My bad... forgot to change those..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not your fault. I have my laptop setup to do the same. The only way to "defend" us against this is to add more tests. We need at least a full integration tests that tries to run an instance of wofpy in Travis-CI.

@emiliom
Copy link
Member

emiliom commented Jun 15, 2017

Thanks, @ocefpaf. I won't touch this; @lsetiawan can review it tomorrow.

Copy link
Member

@lsetiawan lsetiawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for all the changes @ocefpaf, now I know the proper shebang! 😃

@lsetiawan lsetiawan merged commit 9d0fb45 into ODM2:master Jun 15, 2017
@ocefpaf ocefpaf deleted the fix_shebang branch June 15, 2017 20:52
@ocefpaf ocefpaf mentioned this pull request Jun 19, 2017
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

Successfully merging this pull request may close these issues.

3 participants