rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

py_binary with build_python_zip can run with just the name

Open libratiger opened this issue 3 years ago • 1 comments

🚀 feature request

Relevant Rules

Description

After we run the bazel build --build_python_zip //target , we get the zip file, when we run the file, we need

python xxx.zip

can we just run as the following

./xxx

so we can treat the result as just a single binary.

Describe the solution you'd like

If you have a solution in mind, please describe it.

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

libratiger avatar Mar 03 '22 14:03 libratiger

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

github-actions[bot] avatar Aug 30 '22 22:08 github-actions[bot]

This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

github-actions[bot] avatar Sep 29 '22 22:09 github-actions[bot]

Would love it if that were possible. Or if we could execute that zip with the runtime interpreter rather than using the host interpreter. The later might already be possible to do?

piotrromanowski avatar Oct 21 '22 16:10 piotrromanowski