mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
managed to load VERSION file in yaml file - simplifies things
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
|
||||
SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
|
||||
VERSION=$(cat $SCRIPTDIR/../VERSION)
|
||||
export VERSION
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
output_dir=$CONDA_PREFIX/conda-bld
|
||||
else
|
||||
output_dir=$1
|
||||
fi
|
||||
|
||||
if [ -z "$2" ]
|
||||
then
|
||||
recipe=$SCRIPTDIR
|
||||
else
|
||||
recipe=$SCRIPTDIR/$2
|
||||
fi
|
||||
|
||||
echo "building conda package version: $VERSION using recipe $recipe and writing output to $output_dir"
|
||||
|
||||
|
||||
conda build $recipe --output-folder $output_dir
|
@ -1,11 +1,11 @@
|
||||
#{% set version = load_file('VERSION').strip %}
|
||||
package:
|
||||
name: sls_detector_software
|
||||
version: {{ environ.get('VERSION') }} #2025.3.19
|
||||
|
||||
source:
|
||||
path: ../..
|
||||
|
||||
{% set version = load_file_regex(load_file = 'VERSION', regex_pattern = '(\d+\.\d+\.\d+)').group(1) %}
|
||||
package:
|
||||
name: sls_detector_software
|
||||
version: {{ version }} #2025.3.19
|
||||
|
||||
build:
|
||||
number: 0
|
||||
binary_relocation: True
|
||||
|
@ -1,10 +1,11 @@
|
||||
source:
|
||||
path: ../..
|
||||
|
||||
{% set version = load_file_regex(load_file = 'VERSION', regex_pattern = '(\d+\.\d+\.\d+)').group(1) %}
|
||||
|
||||
package:
|
||||
name: slsdet
|
||||
version: {{ environ.get('VERSION') }} #2025.3.19
|
||||
|
||||
source:
|
||||
path: ../..
|
||||
version: {{ version }} #
|
||||
|
||||
build:
|
||||
number: 0
|
||||
@ -18,7 +19,6 @@ requirements:
|
||||
- {{ stdlib("c") }}
|
||||
- {{ compiler('cxx') }}
|
||||
|
||||
|
||||
host:
|
||||
- cmake
|
||||
- ninja
|
||||
|
Reference in New Issue
Block a user