-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostinst
executable file
·32 lines (30 loc) · 1.64 KB
/
postinst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
if [ x"$D" = "x" ]; then
if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
fi
# compile library files
/usr/bin/env PYTHONPATH=/usr/local/lib/python3.13 LD_LIBRARY_PATH=/usr/local/lib \
/usr/local/bin/python3 -Wi /usr/local/lib/python3.13/compileall.py \
-d lib/python3.13 -f -q \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/usr/local/lib/python3.13
/usr/bin/env PYTHONPATH=/usr/local/lib/python3.13 LD_LIBRARY_PATH=/usr/local/lib \
/usr/local/bin/python3 -Wi -O /usr/local/lib/python3.13/compileall.py \
-d lib/python3.13 -f -q \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/usr/local/lib/python3.13
/usr/bin/env PYTHONPATH=/usr/local/lib/python3.13 LD_LIBRARY_PATH=/usr/local/lib \
/usr/local/bin/python3 -Wi /usr/local/lib/python3.13/compileall.py \
-d lib/python3.13/site-packages -f -q \
-x badsyntax /usr/local/lib/python3.13/site-packages
/usr/bin/env PYTHONPATH=/usr/local/lib/python3.13 LD_LIBRARY_PATH=/usr/local/lib \
/usr/local/bin/python3 -Wi -O /usr/local/lib/python3.13/compileall.py \
-d lib/python3.13/site-packages -f -q \
-x badsyntax /usr/local/lib/python3.13/site-packages
# Fix pip to not warn when running as root because we don't care
sed -i 's/def warn_if_run_as_root() -> None:$/def warn_if_run_as_root() -> None: return\ndef _unused():/g' \
/usr/local/lib/python3.13/site-packages/pip/_internal/cli/req_command.py
# Let user program set RT thread priorities by making CAP_SYS_NICE
# permitted, inheritable, and effective. See "man 7 capabilities"
# for docs on capabilities and file capability sets.
setcap cap_sys_nice+eip /usr/local/bin/python3.13