Spaces:
Runtime error
Runtime error
Upload prepare.sh
Browse files- scripts/prepare.sh +9 -0
scripts/prepare.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env sh
|
2 |
+
|
3 |
+
|
4 |
+
# set -euo pipefail
|
5 |
+
|
6 |
+
v=$(python -c 'import sys; v = sys.version_info; print(f"{v.major}.{v.minor}")')
|
7 |
+
for p in patches/*.diff; do
|
8 |
+
patch -p0 -d/home/user < <(sed -e 's/venv/.local/' -e "s/python3.10/python${v}/" "${p}")
|
9 |
+
done
|