Resumo: Este guia explica, de ponta a ponta, como obter, configurar, compilar e executar o ciclo pré-operacional do SMNA (BAM + GSI) no Egeon.
# 0) Obter a tag estável| # Code checkout | |
| git clone --recursive https://github.com/dtcenter/MPAS-Model.git | |
| cd MPAS-Model | |
| git checkout remotes/origin/gsl/MPAS_stoch_physics | |
| cd src/core_atmosphere | |
| rm -rf stochastic_physics |
By a complex package, I mean a package with pure Python code as well as code in other languages like C, Fortran, etc.
Note: I am assuming that your setup.py already works, and I will show you how to create a manylinux Python wheel. You will need Docker for this.
To create a distribution of your Python package with statically linked libraries (i.e., a self-contained package), you need to use a Linux distribution that provides all necessary dependencies. This is where manylinux comes in handy.
A guide on how to publish a simple package (i.e., pure Python) to PyPi.
First, set up your ~/.pypirc to make things a little easier:
[distutils]| #! /bin/bash -x | |
| #SBATCH --output=/mnt/beegfs/carlos.bastarz/oensMB09/recanl/output/setrecanlANLSMT.TQ0126L042.2020090100.Linux.23112411:33.out | |
| #SBATCH --error=/mnt/beegfs/carlos.bastarz/oensMB09/recanl/output/setrecanlANLSMT.TQ0126L042.2020090100.Linux.23112411:33.err | |
| #SBATCH --time=00:30:00 | |
| #SBATCH --tasks-per-node=1 | |
| #SBATCH --nodes=1 | |
| #SBATCH --job-name=RECANL | |
| #SBATCH --partition=PESQ1 |
| #! /bin/bash -x | |
| #SBATCH --output=/mnt/beegfs/carlos.bastarz/oensMB09/model/exec_SMT2020052600.NMC/setout/Out.model.2020052600.MPI64.out | |
| #SBATCH --error=/mnt/beegfs/carlos.bastarz/oensMB09/model/exec_SMT2020052600.NMC/setout/Out.model.2020052600.MPI64.err | |
| #SBATCH --time=04:00:00 | |
| #SBATCH --tasks-per-node=64 | |
| #SBATCH --nodes=1 | |
| #SBATCH --job-name=BAMNMC | |
| #SBATCH --partition=PESQ1 |
| akonadi stop | |
| sudo apt-get install akonadi-server akonadi-backend-postgresql | |
| cd $HOME/.config/akonadi/ | |
| cp akonadiserverrc akonadiserverrc.bak | |
| cat << EOF > $HOME/.config/akonadi/akonadiserverrc | |
| [Debug] | |
| Tracer=null | |
| [%General] | |
| Driver=QPSQL |
| ffmpeg -i "2023-10-02 13-42-57.mkv" -vn -c:a libmp3lame -y "2023-10-02 13-42-57.mp3" |
| # Chop the figures (in my case, figures were in landscape mode) | |
| for i in $(ls *.png); do j=$(echo $i | sed "s,.png,-chop.png,g"); convert $i -gravity South -chop 0x10 -gravity North -chop 0x50 -gravity East -chop 296x0 -gravity West -chop 296x0 $j; done | |
| # Rotate the figures 90 degrees (clockwise) | |
| for i in $(ls *-chop.png); do j=$(echo $i | sed "s,-chop.png,-chop-rot90.png,g"); convert $i -rotate 90 $j; done | |
| # Convert all figures to PDF | |
| for i in $(ls *-chop-rot90.png); do j=$(echo $i | sed "s,-chop-rot90.png,.pdf,g"); convert $i $j; done | |
| # Unite all PDF (21) files into one |
| #! /bin/bash | |
| inctime=/home/carlos.bastarz/bin/inctime | |
| res=TQ0299L064 | |
| pfx=CPT | |
| bpath=/mnt/beegfs/carlos.bastarz/SMNA-Oper/SMG/datainout/bam/pos/dataout | |
| datai=2019111512 |