From 9bc623eb6d4687619cb93901fa057a136953f884 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Wed, 15 Sep 2021 19:19:32 +0200 Subject: [PATCH] [build] filter linux specific packages --- bob/devtools/build.py | 7 +++++++ bob/devtools/data/conda_build_config.yaml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bob/devtools/build.py b/bob/devtools/build.py index e3fb82d4..82090900 100644 --- a/bob/devtools/build.py +++ b/bob/devtools/build.py @@ -726,6 +726,13 @@ def bob_devel( idx1 = content.find("# AUTOMATIC PARSING START") idx2 = content.find("# AUTOMATIC PARSING END") content = content[idx1:idx2] + + # filter out using conda-build specific markers + from conda_build.metadata import ns_cfg, select_lines + + config = make_conda_config(conda_build_config, None, None, condarc_options) + content = select_lines(content, ns_cfg(config), variants_in_place=False) + package_pins = yaml.safe_load(content) package_names_map = package_pins.pop("package_names_map") diff --git a/bob/devtools/data/conda_build_config.yaml b/bob/devtools/data/conda_build_config.yaml index 4e55a6c3..95f969bc 100644 --- a/bob/devtools/data/conda_build_config.yaml +++ b/bob/devtools/data/conda_build_config.yaml @@ -230,8 +230,8 @@ sqlalchemy: - 1.4.15 tabulate: - 0.8.9 -tensorflow: - - 2.4.1 +tensorflow: # [linux] + - 2.4.1 # [linux] termcolor: - 1.1.0 torchvision: -- GitLab