Преглед на файлове

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).
Thomas Waldmann преди 1 година
родител
ревизия
8dcd8daab1
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      setup.py

+ 2 - 0
setup.py

@@ -21,6 +21,8 @@ except ImportError as exc:
     # 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__)]