forked from pygame-web/pygbag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvendoring.sh
executable file
·41 lines (32 loc) · 1.1 KB
/
vendoring.sh
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
31
32
33
34
35
36
37
38
39
40
41
[ -f vendor/vendor.sh ] && . vendor/vendor.sh
# default is to build pygame only
export VENDOR=${VENDOR:-pygbag}
export PACKAGES=${PACKAGES:-emsdk hpy pygame}
export SDKROOT=${SDKROOT:-/opt/python-wasm-sdk}
export SDK_VERSION=${SDK_VERSION:-3.1.52.0bi}
export CYTHON=${CYTHON:-Cython-3.0.1-py2.py3-none-any.whl}
export PYBUILD=${PYBUILD:-3.11}
export LC_ALL=C
export SYS_PYTHON=${SYS_PYTHON:-$(which python3)}
if $CI
then
export PYGBAG_BUILD=0.0
else
# export PYGBAG_BUILD=$($SYS_PYTHON -c "print(__import__('pygbag').VERSION)"|tail -n 1|cut -f1-2 -d.)
export PYGBAG_BUILD=0.0
fi
export DIST_DIR=$(pwd)/build/web/archives/${PYGBAG_BUILD}
mkdir -p $DIST_DIR
echo "
==============================================================================
Building $VENDOR loader, target folder :
${DIST_DIR}
________________________________________
statically built modules: $PACKAGES
with SDK $SDK_VERSION from $SDKROOT
python versions : $BUILDS
Cython release: $CYTHON
SYS_PYTHON: $SYS_PYTHON
CI=$CI
==============================================================================
"