[tools] Cache python bytecode

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-14 08:20:29 +00:00
committed by Konstantin Pastbin
parent 2d275d9148
commit 4aa441101c
4 changed files with 1 additions and 13 deletions

View File

@@ -1,9 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e -u set -e -u
# Prevent python from generating compiled *.pyc files
export PYTHONDONTWRITEBYTECODE=1
OMIM_PATH="${OMIM_PATH:-$(dirname "$0")/../..}" OMIM_PATH="${OMIM_PATH:-$(dirname "$0")/../..}"
DATA_PATH="${DATA_PATH:-$OMIM_PATH/data}" DATA_PATH="${DATA_PATH:-$OMIM_PATH/data}"
@@ -74,4 +71,4 @@ do
fi fi
done done
echo "Diffs for all changes are stored in $DATA_PATH/*.txt.diff" echo "Diffs for all changes are stored in $DATA_PATH/*.txt.diff"

View File

@@ -14,9 +14,6 @@ then
exit exit
fi fi
# Prevent python from generating compiled *.pyc files
export PYTHONDONTWRITEBYTECODE=1
# Add env var to disable renderer on a display (renderer not working into a Github container) # Add env var to disable renderer on a display (renderer not working into a Github container)
export QT_QPA_PLATFORM=offscreen export QT_QPA_PLATFORM=offscreen

View File

@@ -1,9 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e -u set -e -u
# Prevent python from generating compiled *.pyc files
export PYTHONDONTWRITEBYTECODE=1
DEBUG="${1:-empty}" DEBUG="${1:-empty}"
MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`dirname \"$0\"`" # relative

View File

@@ -13,9 +13,6 @@ if ! command -v scour &> /dev/null; then
exit exit
fi fi
# Prevent python from generating compiled *.pyc files
export PYTHONDONTWRITEBYTECODE=1
OMIM_PATH="${OMIM_PATH:-$(cd "$(dirname "$0")/../.."; pwd)}" OMIM_PATH="${OMIM_PATH:-$(cd "$(dirname "$0")/../.."; pwd)}"
echo "Started processing" echo "Started processing"