Skip to content
Snippets Groups Projects
Commit 7a3091ec authored by Samuel Burbulla's avatar Samuel Burbulla Committed by Andreas Dedner
Browse files

Update dependencies in pyproject.toml.

Rename 'Loading' to 'Compiling' in builder.
parent f40b9821
No related branches found
No related tags found
No related merge requests found
[build-system]
requires = ['setuptools', 'wheel', 'scikit-build', 'cmake', 'ninja', 'requests', 'portalocker', 'numpy']
requires = ['setuptools', 'wheel', 'scikit-build', 'cmake', 'ninja', 'requests', 'portalocker', 'numpy', 'portalocker', 'numpy', 'wheel', 'mpi4py']
build-backend = 'setuptools.build_meta'
......@@ -103,18 +103,13 @@ class Builder:
# module must be generated so lock the source file
with Lock(os.path.join(self.dune_py_dir, 'lock-'+moduleName+'.lock'), flags=LOCK_EX):
sourceFileName = os.path.join(self.generated_dir, moduleName + ".cc")
<<<<<<< HEAD
if not os.path.isfile(sourceFileName):
logger.info("Compiling " + pythonName)
=======
line = "dune_add_pybind11_module(NAME " + moduleName + " EXCLUDE_FROM_ALL)"
# first check if this line is already present in the CMakeLists file
# (possible if a previous script was stopped by user before module was compiled)
with open(os.path.join(self.generated_dir, "CMakeLists.txt"), 'r') as out:
found = line in out.read()
if not os.path.isfile(sourceFileName) or not found:
logger.info("Loading " + pythonName + " (new)")
>>>>>>> b73437ddb... also make new module if line in CMakeLists is missing
logger.info("Compiling " + pythonName)
code = str(source)
with open(os.path.join(sourceFileName), 'w') as out:
out.write(code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment