Skip to content

Commit 69022f5

Browse files
committed
Adding local-build script back in for other platforms
1 parent a24082b commit 69022f5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

local-build.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
set -e
3+
4+
function info() {
5+
echo -e "\033[1;36m$1\033[0m"
6+
}
7+
8+
trap "info Exited!; exit;" SIGINT SIGTERM
9+
10+
for python_version in '3.8' '3.9' '3.10' '3.11' '3.12'
11+
do
12+
info "Building wheel for Python $python_version..."
13+
info "Removing temp files..."
14+
rm -rf -v ./build
15+
rm -rf -v ./cadquery_ocp.egg-info
16+
info "Conda Deps Setup..."
17+
CONDA_SUBDIR=osx-arm64 conda create --yes -n ocp-build-system -c cadquery -c conda-forge \
18+
python=$python_version \
19+
ocp=7.7.2.* \
20+
vtk=9.2.* \
21+
pip
22+
info "Conda Arch Setup..."
23+
conda run -n ocp-build-system conda config --env --set subdir osx-arm64
24+
info "Pip Deps Setup..."
25+
conda run -n ocp-build-system pip install \
26+
build \
27+
setuptools \
28+
wheel \
29+
requests \
30+
delocate \
31+
auditwheel \
32+
delvewheel
33+
info "Conda-only Build..."
34+
conda run --live-stream -n ocp-build-system \
35+
python -m build --no-isolation --wheel
36+
done

0 commit comments

Comments
 (0)