You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Building Conda Packages And Releases

psana1

assemble all packages source code in tar.gz file

pslogin
ssh psbuild-rhel7-01 -l psreldev

tail -2000 ~/.bash_history # to see what is done...

set environment:

source /cds/sw/ds/ana/conda1/inst/etc/profile.d/conda.sh
conda activate conda_build

cd /cds/sw/ds/ana/conda1/

git clone git@github.com:slaclab/anarel-manage.git manage  # if manage directory is not available, OR


cd manage

git pull --rebase

l scratch/  # to see what releases were created, e.g. psana-conda-4.0.55/

bin/ana-rel-admin --force --cmd psana-conda-src --name 4.0.56 --basedir `pwd`   (this command assembles all the source code from the tags into a .tar.gz file)

--basedir`pwd` is converted to /cds/sw/ds/ana/conda1/manage/

< config/psana-conda-svn-pkgs # contains the list of packages with source code

> scratch/psana-conda-4.0.56/<packages>   # clones form git or svn
> scratch/psana-conda-4.0.56/psana-conda-tag    # tags extended with version like 'tag': 'V02-00-76'
> scratch/psana-conda-4.0.56/psana-conda-4.0.56/.sit_release    #  contains psana-conda-4.0.56
> downloads/anarel/psana-conda-4.0.56.tar.gz

Accessed through url:
file:///cds/sw/ds/ana/conda1/manage/downloads/anarel/psana-conda-4.0.56.tar.gz

sha256sum .../psana-conda-4.0.56.tar.gz > 443440bf7a7fdbcdf89314b68c07f97f5a89dff38d6da98685e74f0671fac37d

conda build

ssh pslogin
ssh psbuild-rhel7-01 -l psreldev

cp ~cpo/.condarc ~/. # if ~/.condarc is not available
cd git
rm -rf psana1-feedstock/
git clone https://github.com/slac-lcls/psana1-feedstock

cd psana1-feedstock

set environment:

source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh
conda deactivate
conda activate conda_build

edit psana1-feedstock/recipe/meta.yaml

{% set version = '4.0.56' %}
 ...
 sha256: 443440bf7a7fdbcdf89314b68c07f97f5a89dff38d6da98685e74f0671fac37d
 ...
extra:
  recipe-maintainers:
    - valmar
    - chrisvam
    - dubrovin

update it in github

conda build -c lcls-i -c conda-forge recipe


creates: /cds/home/p/psreldev/conda-bld/linux-64/psana-4.0.56-py39hb869b97_1.tar.bz2


Upload the file to anaconda lcls-i channel

anaconda upload -u lcls-i /cds/home/p/psreldev/conda-bld/linux-64/psana-4.0.56-py39hb869b97_1.tar.bz2


REFERENCES

  • No labels