@ -333,12 +333,17 @@ py_wheel(
" //conditions:default " : " any " ,
" //conditions:default " : " any " ,
} ) ,
} ) ,
python_requires = " >=3.8 " ,
python_requires = " >=3.8 " ,
# LINT.IfChange(python_tag)
python_tag = selects . with_or ( {
python_tag = selects . with_or ( {
" //python:full_api_3.8 " : " cp38 " ,
( " //python:limited_api_3.8 " , " //python:full_api_3.8 " ) : " cp38 " ,
" //python:full_api_3.9 " : " cp39 " ,
" //python:full_api_3.9 " : " cp39 " ,
" //python:limited_api_3.10 " : " cp310 " ,
" //python:limited_api_3.10 " : " cp310 " ,
" //conditions:default " : " cp " + SYSTEM_PYTHON_VERSION ,
" //conditions:default " : " cp " + SYSTEM_PYTHON_VERSION ,
} ) ,
} ) ,
# LINT.ThenChange(
# :full_api_version,
# :limited_api_wheels,
# )
strip_path_prefixes = [
strip_path_prefixes = [
" python/dist/ " ,
" python/dist/ " ,
" python/ " ,
" python/ " ,
@ -432,16 +437,19 @@ py_dist(
" win64 " ,
" win64 " ,
] ,
] ,
# Windows needs version-specific wheels until 3.10.
# Windows needs version-specific wheels until 3.10.
# LINT.IfChange(full_api_version)
full_api_versions = [
full_api_versions = [
" 38 " ,
" 38 " ,
" 39 " ,
" 39 " ,
] ,
] ,
# LINT.ThenChange(:python_tag)
# Limited API: these wheels will satisfy any Python version >= the
# Limited API: these wheels will satisfy any Python version >= the
# given version.
# given version.
#
#
# Technically the limited API doesn't have the functions we need until
# Technically the limited API doesn't have the functions we need until
# 3.10, but on Linux we can get away with using 3.7 (see ../python_api.h for
# 3.10, but on Linux we can get away with using 3.1+ (see ../python_api.h for
# details).
# details).
# LINT.IfChange(limited_api_wheels)
limited_api_wheels = {
limited_api_wheels = {
" win32 " : " 310 " ,
" win32 " : " 310 " ,
" win64 " : " 310 " ,
" win64 " : " 310 " ,
@ -449,6 +457,7 @@ py_dist(
" linux-aarch_64 " : " 38 " ,
" linux-aarch_64 " : " 38 " ,
" osx-universal2 " : " 38 " ,
" osx-universal2 " : " 38 " ,
} ,
} ,
# LINT.ThenChange(:python_tag)
pure_python_wheel = " :pure_python_wheel " ,
pure_python_wheel = " :pure_python_wheel " ,
tags = [ " manual " ] ,
tags = [ " manual " ] ,
)
)