-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathbuild_wheels.sh
More file actions
executable file
·30 lines (23 loc) · 910 Bytes
/
Copy pathbuild_wheels.sh
File metadata and controls
executable file
·30 lines (23 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
__doc__="
Runs cibuildwheel to create linux binary wheels.
Requirements:
pip install cibuildwheel
SeeAlso:
pyproject.toml
"
if ! which docker ; then
echo "Missing requirement: docker. Please install docker before running build_wheels.sh"
exit 1
fi
if ! which cibuildwheel ; then
echo "The cibuildwheel module is not installed. Please pip install cibuildwheel before running build_wheels.sh"
exit 1
fi
LOCAL_CP_VERSION=$(python3 -c "import sys; print('cp' + ''.join(list(map(str, sys.version_info[0:2]))))")
echo "LOCAL_CP_VERSION = $LOCAL_CP_VERSION"
# Build for only the current version of Python
export CIBW_BUILD="${LOCAL_CP_VERSION}-*"
#pip wheel -w wheelhouse .
# python -m build --wheel -o wheelhouse # line_profiler: +COMMENT_IF(binpy)
cibuildwheel --config-file pyproject.toml --platform linux --archs x86_64 # line_profiler: +UNCOMMENT_IF(binpy)