Skip to content

Instantly share code, notes, and snippets.

View cfbastarz's full-sized avatar
🌎

Carlos Frederico Bastarz cfbastarz

🌎
View GitHub Profile
@cfbastarz
cfbastarz / setnmc1modg.TQ0126L042.2020052600.headnode
Created November 28, 2023 16:07
Script de submissão para o BAM na egeon
#! /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
@cfbastarz
cfbastarz / setrecanlANLSMT.TQ0126L042.2020090100.Linux
Created November 30, 2023 21:02
Script de submissão para processo recanl do oensMB09 na egeon
#! /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
@cfbastarz
cfbastarz / gist:ea3a57c367e73caf9e12db3ec2106d33
Last active August 21, 2024 17:34
Publish a simple package to PyPi

Publish a Simple Package to PyPi

A guide on how to publish a simple package (i.e., pure Python) to PyPi.

Set Up Your ~/.pypirc

First, set up your ~/.pypirc to make things a little easier:

[distutils]
@cfbastarz
cfbastarz / gist:4ae2533e727e941dc7c64fcdf904fac1
Last active August 21, 2024 17:32
Publish a complex package to PyPi

Publish a Complex Package to PyPi

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.

The manylinux Wheel 🛞

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.