Skip to content
Snippets Groups Projects
Verified Commit f223ce6c authored by Lars Bilke's avatar Lars Bilke
Browse files

[py] Added scikit-build.

Build with:

```
pip install .
```
parent 93bb8a97
No related branches found
No related tags found
No related merge requests found
...@@ -38,4 +38,8 @@ CMakeUserPresets.json ...@@ -38,4 +38,8 @@ CMakeUserPresets.json
nohup.out nohup.out
/Documentation/.vale /Documentation/.vale
# Python build
/_skbuild
*.egg-info/
.ipynb_checkpoints .ipynb_checkpoints
[build-system]
requires = [
"setuptools>=42",
"scikit-build>=0.15.0",
"cmake>=3.22",
"ninja; platform_system!='Windows'",
]
build-backend = "setuptools.build_meta"
...@@ -76,7 +76,9 @@ if(OGS_USE_PYTHON) ...@@ -76,7 +76,9 @@ if(OGS_USE_PYTHON)
install(FILES ${PYTHON_RUNTIME_LIBS} DESTINATION bin) install(FILES ${PYTHON_RUNTIME_LIBS} DESTINATION bin)
file(COPY ${PYTHON_RUNTIME_LIBS} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) file(COPY ${PYTHON_RUNTIME_LIBS} DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
else() else()
install(FILES ${Python_LIBRARIES} DESTINATION bin) file(INSTALL ${Python_LIBRARIES} DESTINATION ${CMAKE_INSTALL_LIBDIR}
FOLLOW_SYMLINK_CHAIN
)
endif() endif()
endif() endif()
......
setup.py 0 → 100644
from skbuild import setup
from setuptools import find_packages
setup(
name="ogs",
version="6.4.2",
description="OpenGeoSys",
author="OpenGeoSys Community",
license="BSD-3-Clause",
packages=find_packages(where="."),
package_dir={"": "."},
cmake_args=["-DOGS_BUILD_PROCESSES=SteadyStateDiffusion", "-DOGS_BUILD_UTILS=OFF"],
python_requires=">=3.6",
)
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