Skip to content

Instantly share code, notes, and snippets.

@jtpio
Last active January 7, 2022 18:18
Show Gist options
  • Save jtpio/4c184a755c332b35d7de456603eac119 to your computer and use it in GitHub Desktop.
Save jtpio/4c184a755c332b35d7de456603eac119 to your computer and use it in GitHub Desktop.
Micromamba Python 3.10 Bootstrap

Micromamba Python 3.10 Bootstrap Script

Small script to quickly bootstrap a Python 3.10 environment with Micromamba.

This is useful on CI and hosted environments like Vercel and Netlify, where the build image offer limited software.

Usage

#!/bin/bash
curl -L  https://gist.githubusercontent.com/jtpio/4c184a755c332b35d7de456603eac119/raw/11a54dd5eacc833fafc9e24b5cef18c4d31586dd/bootstrap.sh | bash -
set -xeu
yum install wget || true
wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
./bin/micromamba shell init -s bash -p ~/micromamba
source ~/.bashrc
micromamba activate
micromamba install python=3.10 -c conda-forge -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment