google / subpar

Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel.
Apache License 2.0
567 stars 69 forks source link

Add interpreter attr to parfile #125

Closed keith closed 4 years ago

keith commented 4 years ago

This allows users to customize the interpreter and therefore the shebang embedded in the generated par file. This is useful for macOS where #!/usr/bin/env python2 isn't valid by default, since python2 doesn't exist, but python2.7 does.

keith commented 4 years ago

This could be used to fix https://github.com/google/xctestrunner/issues/18

fahhem commented 4 years ago

You could just pass in this arg via compiler_args, right?

keith commented 4 years ago

You're right! thanks, I'm not sure why I didn't catch that