From 14c3563677464537cd121a87d062dba831c0700b Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Thu, 18 Apr 2024 08:57:25 -0700 Subject: [PATCH] Build wheel and install that for cibuild-module --- script/cibuild-module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/cibuild-module b/script/cibuild-module index b48ba7c..87a5226 100755 --- a/script/cibuild-module +++ b/script/cibuild-module @@ -15,12 +15,14 @@ VENV_PYTHON=$(command -v python3) VENV_NAME="${TMP_DIR}/env" "$VENV_PYTHON" -m venv "$VENV_NAME" . "${VENV_NAME}/bin/activate" -pip install setuptools +pip install build setuptools echo "## environment & versions ######################################################" python --version pip --version echo "## install octodns from pwd ####################################################" -python setup.py install +VERSION="$(grep "^__version__" "./octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" +python -m build --sdist --wheel +pip install dist/*$VERSION*.whl echo "## checkout provider module ####################################################" cd $TMP_DIR git clone "https://github.com/${module}.git"