diff options
Diffstat (limited to 'pkgs/applications/misc/far2l/python_prebuild.patch')
-rw-r--r-- | pkgs/applications/misc/far2l/python_prebuild.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/misc/far2l/python_prebuild.patch b/pkgs/applications/misc/far2l/python_prebuild.patch new file mode 100644 index 0000000000000..87762da52e054 --- /dev/null +++ b/pkgs/applications/misc/far2l/python_prebuild.patch @@ -0,0 +1,20 @@ +diff --git i/python/src/prebuild.sh w/python/src/prebuild.sh +index d2847ee5..aa1ecc53 100755 +--- i/python/src/prebuild.sh ++++ w/python/src/prebuild.sh +@@ -12,9 +12,6 @@ mkdir -p "$DST/incpy" + if [ ! -f "$DST/python/.prepared" ]; then + echo "Preparing python virtual env at $DST/python using $PYTHON" + mkdir -p "$DST/python" +- $PYTHON -m venv --system-site-packages "$DST/python" +- "$DST/python/bin/python" -m pip install --upgrade pip || true +- "$DST/python/bin/python" -m pip install --ignore-installed cffi debugpy pcpp + $PREPROCESSOR "$SRC/python/src/consts.gen" | sh > "${DST}/incpy/consts.h" + + echo "1" > "$DST/python/.prepared" +@@ -26,4 +23,4 @@ cp -f -R \ + "$SRC/python/configs/plug/far2l/"* \ + "$DST/incpy/" + +-"$DST/python/bin/python" "$SRC/python/src/pythongen.py" "${SRC}" "${DST}/incpy" ++"python" "$SRC/python/src/pythongen.py" "${SRC}" "${DST}/incpy" |