We can now build the CLI in a cross platform way (linux/mac/windows) all from the Makefile with relocatable VENV, DIST, and TOX directories. We can also optionally build in a docker container on platforms where docker is available.
21 lines
468 B
Bash
Executable File
21 lines
468 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CURRDIR=$(dirname "${0}")
|
|
source ${CURRDIR}/common.sh
|
|
|
|
cd ${BASEDIR}
|
|
|
|
mkdir -p ${BUILDDIR}/${DIST}/build
|
|
rm -rf ${BUILDDIR}/${DIST}/build/packages
|
|
|
|
echo "Building wheel..."
|
|
${BUILDDIR}/${VENV}/${BIN}/python${EXE} setup.py bdist_wheel \
|
|
--dist-dir=${BUILDDIR}/${DIST}
|
|
|
|
echo "Building egg..."
|
|
${BUILDDIR}/${VENV}/${BIN}/python${exe} setup.py sdist \
|
|
--dist-dir=${BUILDDIR}/${DIST}
|
|
|
|
mv build ${BUILDDIR}/${DIST}/build/packages
|
|
echo "Packages built."
|