|
|
@ -241,8 +241,7 @@ def _get_python_import_lib_name(repository_ctx, python_bin, bin_path_key): |
|
|
|
return result.stdout.splitlines()[0] |
|
|
|
return result.stdout.splitlines()[0] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO(rbellevi): Rename. |
|
|
|
def _create_single_version_package(repository_ctx, |
|
|
|
def _create_local_python_repository(repository_ctx, |
|
|
|
|
|
|
|
variety_name, |
|
|
|
variety_name, |
|
|
|
bin_path_key, |
|
|
|
bin_path_key, |
|
|
|
default_bin_path, |
|
|
|
default_bin_path, |
|
|
@ -279,12 +278,12 @@ def _create_local_python_repository(repository_ctx, |
|
|
|
|
|
|
|
|
|
|
|
def _python_autoconf_impl(repository_ctx): |
|
|
|
def _python_autoconf_impl(repository_ctx): |
|
|
|
"""Implementation of the python_autoconf repository rule.""" |
|
|
|
"""Implementation of the python_autoconf repository rule.""" |
|
|
|
_create_local_python_repository(repository_ctx, |
|
|
|
_create_single_version_package(repository_ctx, |
|
|
|
"_python2", |
|
|
|
"_python2", |
|
|
|
_PYTHON2_BIN_PATH, |
|
|
|
_PYTHON2_BIN_PATH, |
|
|
|
"python", |
|
|
|
"python", |
|
|
|
_PYTHON2_LIB_PATH) |
|
|
|
_PYTHON2_LIB_PATH) |
|
|
|
_create_local_python_repository(repository_ctx, |
|
|
|
_create_single_version_package(repository_ctx, |
|
|
|
"_python3", |
|
|
|
"_python3", |
|
|
|
_PYTHON3_BIN_PATH, |
|
|
|
_PYTHON3_BIN_PATH, |
|
|
|
"python3", |
|
|
|
"python3", |
|
|
|