Skip to content

Commit

Permalink
Merge pull request #16 from jessecureton/jcureton/upstream_hermetic_p…
Browse files Browse the repository at this point in the history
…ython

workspace: switch to hermetic python interpeter from rules_python
  • Loading branch information
jessecureton authored Feb 19, 2024
2 parents a59c50b + 248bf43 commit df1c2ee
Show file tree
Hide file tree
Showing 7 changed files with 504 additions and 1,532 deletions.
5 changes: 5 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
test --test_output=errors

# The hermetic python interpreter we configure in WORKSPACE
# does not work with bzlmod enabled, so we just disable it
# for now
common --noenable_bzlmod
20 changes: 0 additions & 20 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@ compile_pip_requirements(
requirements_txt = "requirements_lock.txt",
)

# Set up our default python3 runtime
py_runtime(
name = "python3_runtime",
files = ["@python_interpreter//:files"],
interpreter = "@python_interpreter//:python_bin",
python_version = "PY3",
)

py_runtime_pair(
name = "hermetic_py_runtime_pair",
py2_runtime = None,
py3_runtime = ":python3_runtime",
)

toolchain(
name = "hermetic_py_toolchain",
toolchain = ":hermetic_py_runtime_pair",
toolchain_type = "@bazel_tools//tools/python:toolchain_type",
)

# Set up a container-local interpreter, since our container runtime has its own
# equivalent hermetic runtime internally.
py_runtime(
Expand Down
6 changes: 0 additions & 6 deletions MODULE.bazel

This file was deleted.

Loading

0 comments on commit df1c2ee

Please sign in to comment.