From 9243080386ccd309a01eedeedab8cab4b756233c Mon Sep 17 00:00:00 2001 From: David Minton Date: Tue, 15 Aug 2023 20:25:10 -0400 Subject: [PATCH] Updated scritps to work with cibuildwheel --- buildscripts/build_all.sh | 11 ----------- pyproject.toml | 11 ++++++++++- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/buildscripts/build_all.sh b/buildscripts/build_all.sh index 925128285..e96590635 100755 --- a/buildscripts/build_all.sh +++ b/buildscripts/build_all.sh @@ -31,17 +31,6 @@ cd ${ROOT_DIR} VERSION=$( cat version.txt ) echo "Building Swiftest version ${VERSION} for ${OS}-${ARCH}" -# if command -v docker &> /dev/null; then -# echo "Docker detected" - -# cmd="docker build --tag swiftest:latest --tag swiftest:${VERSION} --file=dockerfile.${COMPILER} --output=${ROOT_DIR}/dist/ ." -# echo "Executing Docker build:\n${cmd}" -# eval "$cmd" -# exit 0 -# else -# echo "Docker not detected" -# fi - case $OS in MacOSX) COMPILER="GNU-Mac" diff --git a/pyproject.toml b/pyproject.toml index 1672b964a..a43b7df7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,4 +6,13 @@ requires = [ "cython>=3.0.0", "ninja", ] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" + +[tool.cibuildwheel.linux] +environment = {SCRIPT_DIR="buildscripts",BUILD_DIR="build",PREFIX="/usr/local"} +before-all = [ + "yum install wget m4 -y", + "bash ${SCRIPT_DIR}/fetch_dependencies.sh -d ${BUILD_DIR}", + "bash ${SCRIPT_DIR}/build_dependencies.sh -c GNU-Linux -p ${PREFIX}" +] + \ No newline at end of file