Skip to content

Commit

Permalink
Merge pull request #7 from lazcamus/pyenv-2.2.4
Browse files Browse the repository at this point in the history
bump pyenv unix version to to 2.2.4, allow callers to pass in new versions & hashes
  • Loading branch information
ddlees authored Mar 3, 2022
2 parents 78d214a + ca9ada7 commit 9eedd04
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyenv/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ _pyenv_install = repository_rule(
"py3_dir": attr.string(mandatory = True, doc = "directory for python3"),
"hermetic": attr.bool(default = True, doc = "True if pyenv should be downloaded, False if local pyenv should be used"),
"pyenv_repo": attr.string_dict(default = {
"url": "https://github.com/pyenv/pyenv/archive/v1.2.26.tar.gz",
"strip_prefix": "pyenv-1.2.26",
"sha256": "004a47be4919ca717bee546d3062543d166c24678a21a9a5aa75f3bd0653c5d2"
"url": "https://github.com/pyenv/pyenv/archive/v2.2.4.tar.gz",
"strip_prefix": "pyenv-2.2.4",
"sha256": "7eb5a444cbcde94cbc4f67d056dff3a4db1502d4c491d7fcabb7870d8ecb595a"
}, doc = "unix pyenv repository"),
"pyenv_win_repo": attr.string_dict(default = {
"url": "https://github.com/pyenv-win/pyenv-win/archive/v2.64.3.tar.gz",
Expand All @@ -249,7 +249,8 @@ def pyenv_install(py3, py2 = None, py3_dir = PY3_DEFAULT_DIR_NAME, py2_dir = PY2
py2 = py2,
py3 = py3,
py2_dir = py2_dir,
py3_dir = py3_dir
py3_dir = py3_dir,
**kwargs
)

native.register_toolchains("@{}//:python_toolchain".format(name))

0 comments on commit 9eedd04

Please sign in to comment.