From d83ae0bc6a8369511322c3f313fd4868dbdefa1a Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 22 Feb 2018 09:25:18 +0000 Subject: [PATCH] conda: use the outputs section to dynamically name packages. --- conda/artiq-board/meta.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conda/artiq-board/meta.yaml b/conda/artiq-board/meta.yaml index f4900837e..8662e90f5 100644 --- a/conda/artiq-board/meta.yaml +++ b/conda/artiq-board/meta.yaml @@ -1,5 +1,5 @@ package: - name: artiq-{{ environ.get("ARTIQ_TARGET") }}-{{ environ.get("ARTIQ_VARIANT") }} + name: artiq-build version: {{ environ.get("GIT_DESCRIBE_TAG", "") }} source: @@ -10,6 +10,12 @@ build: ignore_prefix_files: True number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }} string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }} + script_env: + - ARTIQ_TARGET + - ARTIQ_VARIANT + +outputs: + - name: artiq-{{ environ.get("ARTIQ_TARGET") }}-{{ environ.get("ARTIQ_VARIANT") }} requirements: build: