1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-01 12:09:10 +00:00

setup.py: detect noexec build fs issue, see #8208

That "failed to map segment from shared object" error msg is not
very helpful. Add a hint that the filesystem needs to be +exec
(== not noexec mounted, like it might be the case for /tmp on
some systems).
This commit is contained in:
Thomas Waldmann 2024-05-12 14:36:51 +02:00
parent d033f6cd87
commit 8dcd8daab1
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -21,6 +21,8 @@
# either there is no Cython installed or there is some issue with it.
cythonize = None
cythonize_import_error_msg = "ImportError: " + str(exc)
if "failed to map segment from shared object" in cythonize_import_error_msg:
cythonize_import_error_msg += " Check if the borg build uses a +exec filesystem."
sys.path += [os.path.dirname(__file__)]