Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated scritps to work with cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 16, 2023
1 parent f6d6f60 commit 9243080
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 0 additions & 11 deletions buildscripts/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ requires = [
"cython>=3.0.0",
"ninja",
]
build-backend = "setuptools.build_meta"
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}"
]

0 comments on commit 9243080

Please sign in to comment.