#!/bin/bash

# This script can be used to compile/install into the python environment using the included musl compiler.

set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

MAKE_PREFIX="$(cd "$(dirname "${DIR}")" && pwd)"

source "$MAKE_PREFIX/musl-env.bash"

unset PIP_REQUIRE_VIRTUALENV
"${MAKE_PREFIX}/bin/python3" -m pip "$@"
