set versions in ARTIQ conda package

This commit is contained in:
Sebastien Bourdeauducq 2022-02-12 17:46:34 +08:00
parent b01ba6c43a
commit 06a25ce4ab
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,7 @@
cat << EOF > conda/${constituent.name}/build.sh cat << EOF > conda/${constituent.name}/build.sh
#!/bin/bash #!/bin/bash
set -e set -e
${constituent.preSetup or ""}
python setup.py install \ python setup.py install \
--prefix=\$PREFIX \ --prefix=\$PREFIX \
--single-version-externally-managed \ --single-version-externally-managed \
@ -117,6 +118,11 @@
name = "artiq"; name = "artiq";
version = artiq.packages.x86_64-linux.artiq.version; version = artiq.packages.x86_64-linux.artiq.version;
src = artiq.packages.x86_64-linux.artiq.src; src = artiq.packages.x86_64-linux.artiq.src;
preSetup =
''
export VERSIONEER_OVERRIDE=${artiq.packages.x86_64-linux.artiq.version}
export VERSIONEER_REV=${artiq.sourceInfo.rev}
'';
dependencies = [ dependencies = [
"pythonparser" "pythonparser"
"scipy" "scipy"