mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
scripts/uninstall_module: import signal module
With Python 3.13, the `subprocess` module now uses the `posix_spawn()` function [1], which requires the `signal` module to be imported. Fixes: #2607 [1] https://docs.python.org/3/whatsnew/3.13.html#subprocess Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
38b9807cd5
commit
c298b51a69
1 changed files with 10 additions and 0 deletions
|
|
@ -10,6 +10,16 @@ import site
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
# With Python 3.13 the subprocess module now uses the `posix_spawn()`
|
||||
# function which requires loading the `signal` module:
|
||||
# https://docs.python.org/3/whatsnew/3.13.html#subprocess
|
||||
#
|
||||
# We need to load this module here, before PYTHONPATH and sys.path
|
||||
# have been modified to use the path specified with `--prefix`.
|
||||
#
|
||||
# flake8: noqa: F401
|
||||
import signal
|
||||
|
||||
import importlib_metadata
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue