Skip to content
Snippets Groups Projects
Commit d20c8f2b authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[gitlab-ci/base-build.yaml] Let conda-build handle python variants

parent 97adfaaf
Branches
Tags
1 merge request!159Let conda-build handle python variants
Pipeline #40111 passed
......@@ -23,9 +23,7 @@ stages:
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base
- bdt ci base-build -vv nopython.txt
- bdt ci base-build -vv --python=3.6 python.txt
- bdt ci base-build -vv --python=3.7 python.txt
- bdt ci base-build -vv --python=3.8 python.txt
- bdt ci base-build -vv python.txt
- '[ "${CI_COMMIT_REF_NAME}" = "master" ] && bdt ci base-deploy -vv'
- bdt ci clean -vv
cache:
......
......@@ -344,13 +344,6 @@ Examples:
default="bob",
help="Group of packages (gitlab namespace) this package belongs to",
)
@click.option(
"-p",
"--python",
multiple=True,
help='Versions of python in the format "x.y" we should build for. Pass '
"various times this option to build for multiple python versions",
)
@click.option(
"-d",
"--dry-run/--no-dry-run",
......@@ -361,7 +354,7 @@ Examples:
)
@verbosity_option()
@bdt.raise_on_error
def base_build(order, group, python, dry_run):
def base_build(order, group, dry_run):
"""Builds base (dependence) packages.
This command builds dependence packages (packages that are not
......@@ -395,17 +388,10 @@ def base_build(order, group, python, dry_run):
from .. import bootstrap
from ..build import base_build as _build
# combine all versions of python with recipes
if python:
recipes = list(itertools.product(python, recipes))
else:
recipes = list(itertools.product([None], recipes))
for k, (pyver, recipe) in enumerate(recipes):
for k, recipe in enumerate(recipes):
echo_normal("\n" + (80 * "="))
pytext = "for python-%s " % pyver if pyver is not None else ""
echo_normal(
'Building "%s" %s(%d/%d)' % (recipe, pytext, k + 1, len(recipes))
'Building "%s" (%d/%d)' % (recipe, k + 1, len(recipes))
)
echo_normal((80 * "=") + "\n")
if not os.path.exists(os.path.join(recipe, "meta.yaml")):
......@@ -425,7 +411,7 @@ def base_build(order, group, python, dry_run):
group=group,
recipe_dir=recipe,
conda_build_config=variants_file,
python_version=pyver,
python_version=None,
condarc_options=condarc_options,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment