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

Update default stub shebang to Python 3 #13851

Closed
wants to merge 1 commit into from

Conversation

olekw
Copy link
Contributor

@olekw olekw commented Aug 15, 2021

Last part of #11201.
@philwo

@google-cla google-cla bot added the cla: yes label Aug 15, 2021
@oquenchil oquenchil added the team-Rules-Python Native rules for Python label Aug 20, 2021
@philwo
Copy link
Member

philwo commented Aug 23, 2021

Hi @olekw, thanks! I have the same change pending internally and already LGTM'd from my colleague, but I'm still trying to fix that one test on Windows that's failing...

I just gave it another try, let's see how it goes. I'll mark this PR as fixed once my change is submitted!

@philwo
Copy link
Member

philwo commented Aug 23, 2021

The Windows version of Python doesn't ship a python3.exe, only a python.exe. 🤦🏻

I'm going to fix this with mklink "C:\path\to\symlink\python3.exe" "C:\path\to\Python3\python.exe... (bazelbuild/continuous-integration#1216)

@bazel-io bazel-io closed this in 2945ef5 Aug 23, 2021
apattidb pushed a commit to databricks/bazel that referenced this pull request May 27, 2022
This reflects the change in recent Linux distributions that no longer ship a /usr/bin/python binary.

I'm not sure where this is actually used, now that if I understand correctly the shebang defaults to the Python binary found via auto-detection, but we should probably still fix this path (or remove this default fallback completely?).

Related to bazelbuild#11201. Closes bazelbuild#13851.

PiperOrigin-RevId: 392427248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes team-Rules-Python Native rules for Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants