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/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 |
#! /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 |
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]
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.