From 53093db19e466ef808b15319f317991aa5e714b0 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 26 Nov 2021 09:48:14 +1100 Subject: [PATCH] clarify situation around TF_SYSTEM_LIBS --- recipe/build.sh | 15 ++++++++++++--- recipe/meta.yaml | 8 +++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/recipe/build.sh b/recipe/build.sh index 873502e7..61643c91 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -8,6 +8,18 @@ export CXX=$(basename $CXX) export LIBDIR=$PREFIX/lib export INCLUDEDIR=$PREFIX/include +# Upstream docstring for TF_SYSTEM_LIBS in: +# https://github.com/tensorflow/tensorflow/blob/v{{ version }}/third_party/systemlibs/syslibs_configure.bzl +# * `TF_SYSTEM_LIBS`: list of third party dependencies that should use +# the system version instead +# +# To avoid bazel installing lots of vendored (python) packages, +# we need to install these packages through meta.yaml and then +# tell bazel to use them. Note that the names don't necessarily +# match PyPI or conda, but are defined in: +# https://github.com/tensorflow/tensorflow/blob/v{{ version }}/tensorflow/workspace.bzl + +# Exceptions and TODOs: # Needs a bazel build: # com_google_absl # Build failures in tensorflow/core/platform/s3/aws_crypto.cc @@ -19,9 +31,6 @@ export INCLUDEDIR=$PREFIX/include # com_github_googlecloudplatform_google_cloud_cpp # Needs c++17, try on linux # com_googlesource_code_re2 - -# The possible values are specified in third_party/systemlibs/syslibs_configure.bzl -# The versions for them can be found in tensorflow/workspace.bzl export TF_SYSTEM_LIBS=" absl_py astor_archive diff --git a/recipe/meta.yaml b/recipe/meta.yaml index c2ab0e64..787f0fe3 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -57,7 +57,13 @@ requirements: - m2-zip # [win] - openjdk >=8 - nsync - # TF_SYSTEM_LIBS + # TF_SYSTEM_LIBS, see usage in + # https://github.com/tensorflow/tensorflow/blob/v{{ version }}/third_party/systemlibs/syslibs_configure.bzl + # their versions are specified in + # https://github.com/tensorflow/tensorflow/blob/v{{ version }}/tensorflow/workspace2.bzl + # but so far there have been no problems with leaving these + # unpinned; though some restrictions come in for packages + # that are also listed as a requirement for the pip_package. - astor - cython - dill