From 3b94b0d2504ac31840d6eeebed221db82a66daa6 Mon Sep 17 00:00:00 2001 From: adam lazur Date: Tue, 1 Feb 2022 16:23:36 +0900 Subject: [PATCH 1/2] bump pyenv unix version to to 2.2.4 --- pyenv/defs.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyenv/defs.bzl b/pyenv/defs.bzl index 7c82999..752f453 100644 --- a/pyenv/defs.bzl +++ b/pyenv/defs.bzl @@ -179,9 +179,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", From ca9ada71aad65999ab02b925fc52f2be88c20cb2 Mon Sep 17 00:00:00 2001 From: adam lazur Date: Thu, 10 Feb 2022 20:02:44 +0900 Subject: [PATCH 2/2] pass kwargs to _pyenv_install This allows overriding pyenv_repo for future upstream releases without having to change the version hardcoded in rules_pyenv --- pyenv/defs.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyenv/defs.bzl b/pyenv/defs.bzl index 752f453..757d3be 100644 --- a/pyenv/defs.bzl +++ b/pyenv/defs.bzl @@ -202,7 +202,8 @@ def pyenv_install(py2, py3, py2_dir = PY2_DEFAULT_DIR_NAME, py3_dir = PY3_DEFAUL py2 = py2, py3 = py3, py2_dir = py2_dir, - py3_dir = py3_dir + py3_dir = py3_dir, + **kwargs ) native.register_toolchains("@{}//:python_toolchain".format(name))