Lines Matching +full:petsc4py +full:- +full:install
14 PetscCall(PetscOptionsGetString(NULL, NULL, "-python", pythonexe, len, &flag)); in PetscPythonFindExecutable()
49 // clang-format off in PetscPythonFindLibrary()
50 …const char *const cmdlines[] = {"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_config… in PetscPythonFindLibrary()
51 …"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_path(\"stdlib\"),os.path.pardir,\"libp… in PetscPythonFindLibrary()
52 …"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_path(\"stdlib\"),os.path.pardir,\"libp… in PetscPythonFindLibrary()
53 …"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_config_var(\"LIBPL\"),sysconfig.get_co… in PetscPythonFindLibrary()
54 … "-c 'import sysconfig; print(sysconfig.get_config_var(\"LIBPYTHON\"))'", in PetscPythonFindLibrary()
55 …"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_config_var(\"LIBDIR\"),\"libpython\"+s… in PetscPythonFindLibrary()
56 …"-c 'import os, sysconfig; print(os.path.join(sysconfig.get_config_var(\"LIBDIR\"),\"libpython\"+s… in PetscPythonFindLibrary()
57 // clang-format on in PetscPythonFindLibrary()
113 /* look required symbols from the Python C-API */ in PetscPythonLoadLibrary()
146 PetscPythonFinalize - Finalize PETSc for use with Python.
163 PetscPythonInitialize - Initialize Python for use with PETSc and import petsc4py.
166 + pyexe - path to the Python interpreter executable, or `NULL`.
167 - pylib - full path to the Python dynamic library, or `NULL`.
170 . -python <exe> - Initializes Python, and optionally takes a Python executable name
206 …PetscStackCallExternalVoid("Py_InitializeEx", Py_InitializeEx(0)); /* 0: do not install signal han… in PetscPythonInitialize()
244 /* import 'petsc4py.PETSc' module */ in PetscPythonInitialize()
246 …PetscStackCallExternalVoid("PyImport_ImportModule", module = PyImport_ImportModule("petsc4py.PETSc… in PetscPythonInitialize()
249 PetscCall(PetscInfo(NULL, "Python: successfully imported module 'petsc4py.PETSc'\n")); in PetscPythonInitialize()
253 PetscCall(PetscInfo(NULL, "Python: error when importing module 'petsc4py.PETSc'\n")); in PetscPythonInitialize()
255 …SETERRQ(PETSC_COMM_SELF, PETSC_ERR_PLIB, "Python: could not import module 'petsc4py.PETSc', perhap… in PetscPythonInitialize()
261 PetscPythonPrintError - Print any current Python errors.
285 PetscPythonMonitorSet - Set a Python monitor for a `PetscObject`