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

Shebangs use /usr/bin/env python2 #255

Merged
merged 1 commit into from
Jun 27, 2015
Merged

Conversation

Hwesta
Copy link
Contributor

@Hwesta Hwesta commented Jun 24, 2015

Update shebangs to use the environment's python2, instead of the system python. This will make it easier to run in virtualenvs, especially on systems where /usr/bin/python is not python2.

/usr/bin/env doesn't take arguments, so removing -00 where it exists.

Any thoughts on changing executeOrRunSubProcess.executeOrRun to interpret 'pythonScript' as 'python2' ?

@Hwesta Hwesta added the Request: discussion The path towards resolving the issue is unclear and opinion is sought from other community members. label Jun 24, 2015
@mistydemeo
Copy link
Contributor

/usr/bin/env doesn't take arguments, so removing -00 where it exists.

Huh, interesting - this behaviour seems different between GNU coreutils' env and BSD env. BSD env has no problem with a shebang of #/usr/bin/env python2 -OO.

@mistydemeo
Copy link
Contributor

Looks fine to me! I assume the performance implications of dropping -OO are minimal?

@mistydemeo
Copy link
Contributor

I'm wrong: apparently this is a Linux vs BSD thing, not a GNU env vs BSD env thing. https://twitter.com/jckarter/status/614583546921906177

@Hwesta
Copy link
Contributor Author

Hwesta commented Jun 27, 2015

Interesting! I just noticed it erroring on my machine with -OO and SO suggested because env didn't take params. Didn't realize it was different in BSD.

-OO doesn't do much, so I'm not very concerned.

Update shebangs to use the environment's python2, instead of the system
python. This wil make it easier to run in virtualenvs and on systems
where /usr/bin/python is not python2.
@qubot qubot force-pushed the dev/issue-xxxx-update-shebangs branch from e535c7d to 8f670a3 Compare June 27, 2015 00:55
@qubot qubot merged commit 8f670a3 into qa/1.x Jun 27, 2015
@qubot qubot deleted the dev/issue-xxxx-update-shebangs branch June 27, 2015 00:58
@Hwesta Hwesta mentioned this pull request Jul 3, 2015
@Hwesta Hwesta modified the milestone: 1.5.0 Jul 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request: discussion The path towards resolving the issue is unclear and opinion is sought from other community members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants