Skip to content

Commit

Permalink
Merge pull request #1377 from citrus-it/pyc
Browse files Browse the repository at this point in the history
When compiling python modules, always force rebuild and timestamp mode
  • Loading branch information
hadfl authored Dec 23, 2023
2 parents 04a9a72 + 139005a commit 8453f20
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2914,7 +2914,20 @@ python_vendor_relocate() {

python_compile() {
logmsg "Compiling python modules"
logcmd $PYTHON -m compileall $DESTDIR
case $PYTHONVER in
2.*) logcmd $PYTHON \
-m compileall \
-f \
"$@" \
$DESTDIR ;;
*) logcmd $PYTHON \
-m compileall \
-j0 \
-f \
--invalidation-mode timestamp \
"$@" \
$DESTDIR ;;
esac
}

python_pep518() {
Expand Down

0 comments on commit 8453f20

Please sign in to comment.