Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools:building
bazel4.2
0001-python-Always-use-python3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-python-Always-use-python3.patch of Package bazel4.2
From c351a9d86f705ce14e5b5e1393a3c46331f3920d Mon Sep 17 00:00:00 2001 From: Michal Rostecki <mrostecki@opensuse.org> Date: Mon, 20 Apr 2020 11:15:39 +0200 Subject: [PATCH] python: Always use python3 --- .../build/lib/bazel/rules/python/BazelPythonSemantics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: bazel3.4-3.4.1/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java =================================================================== --- bazel3.4-3.4.1.orig/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java +++ bazel3.4-3.4.1/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java @@ -247,7 +247,7 @@ public class BazelPythonSemantics implem PathFragment shExecutable = ShToolchain.getPathOrError(ruleContext); // TODO(#8685): Remove this special-case handling as part of making the proper shebang a // property of the Python toolchain configuration. - String pythonExecutableName = OS.getCurrent() == OS.OPENBSD ? "python3" : "python"; + String pythonExecutableName = "python3"; // NOTE: keep the following line intact to support nix builds String pythonShebang = "#!/usr/bin/env " + pythonExecutableName; ruleContext.registerAction(
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor