initial commit
This commit is contained in:
20
usr/local/sbin/certbot-pycache
Executable file
20
usr/local/sbin/certbot-pycache
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# (c) 2024, Konstantin Demin
|
||||
|
||||
set -ef
|
||||
|
||||
[ -n "${VIRTUAL_ENV}" ] || exec certbot-venv "$0" "$@"
|
||||
|
||||
find "${VIRTUAL_ENV}/" -name __pycache__ -exec rm -rf {} +
|
||||
find "${VIRTUAL_ENV}/" -name '*.pyc' -delete
|
||||
|
||||
j=$(nproc) || j=0
|
||||
case "$j" in
|
||||
[1-4] ) ;;
|
||||
* ) j=1 ;;
|
||||
esac
|
||||
j=$(( j*2 + 1 ))
|
||||
|
||||
unset SOURCE_DATE_EPOCH
|
||||
"${PYTHON3:-python3}" -m compileall -q -j $j "${VIRTUAL_ENV}"
|
Reference in New Issue
Block a user