File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments