Adopting change by @jblespiau
diff --git a/python_configure.bzl b/python_configure.bzl index 1f5bffa..bb505c7 100644 --- a/python_configure.bzl +++ b/python_configure.bzl
@@ -246,6 +246,9 @@ def _get_python_include(repository_ctx, python_bin): """Gets the python include path.""" + python_lib = repository_ctx.os.environ.get(_PYTHON_LIB_PATH) + if python_lib != None: + return python_lib result = _execute( repository_ctx, [