build(python): updated all python bindings to reflect serif name
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
hypre_sp = cmake.subproject('hypre')
|
||||
hypre_cpp_cmake_options = cmake.subproject_options()
|
||||
hypre_cpp_cmake_options.add_cmake_defines({
|
||||
'BUILD_SHARED_LIBS': 'ON',
|
||||
})
|
||||
hypre_sp = cmake.subproject(
|
||||
'hypre',
|
||||
options: hypre_cpp_cmake_options,
|
||||
)
|
||||
hypre_dep = hypre_sp.dependency('HYPRE')
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# Get the subproject object first
|
||||
opat_sub = subproject('opat-core')
|
||||
opat_sub = subproject(
|
||||
'opat-core',
|
||||
default_options: {
|
||||
'generate_pc': false
|
||||
}
|
||||
)
|
||||
|
||||
# Get the dependency variable from that subproject
|
||||
opatio_dep = opat_sub.get_variable('opatio_dep')
|
||||
@@ -2,7 +2,7 @@
|
||||
py_installation = import('python').find_installation('python3')
|
||||
|
||||
py_mod = py_installation.extension_module(
|
||||
'fourdsse_bindings', # Name of the generated .so/.pyd file (without extension)
|
||||
'serif', # Name of the generated .so/.pyd file (without extension)
|
||||
sources: [
|
||||
meson.project_source_root() + '/src/python/bindings.cpp',
|
||||
meson.project_source_root() + '/src/python/composition/bindings.cpp',
|
||||
@@ -18,5 +18,4 @@ py_mod = py_installation.extension_module(
|
||||
],
|
||||
cpp_args : ['-UNDEBUG'], # Example: Ensure assertions are enabled if needed
|
||||
install : true,
|
||||
subdir: 'fourdstar' # Optional: Install the module inside a 'fourdsse' Python package directory
|
||||
)
|
||||
@@ -7,8 +7,8 @@ requires = [
|
||||
build-backend = "mesonpy"
|
||||
|
||||
[project]
|
||||
name = "fourdstar" # Choose your Python package name
|
||||
version = "0.1.0" # Your project's version
|
||||
name = "serif" # Choose your Python package name
|
||||
version = "0.0.1a" # Your project's version
|
||||
description = "Python interface for the 4DSSE C++ project"
|
||||
readme = "Readme.md"
|
||||
license = { file = "LICENSE.txt" } # Reference your license file [cite: 2]
|
||||
|
||||
@@ -6,7 +6,7 @@ polyCoeff_headers = files(
|
||||
'public/polyCoeff.h'
|
||||
)
|
||||
|
||||
libPolyCoeff = static_library('polyCoeff',
|
||||
libPolyCoeff = shared_library('polyCoeff',
|
||||
polyCoeff_sources,
|
||||
include_directories : include_directories('./public'),
|
||||
cpp_args: ['-fvisibility=default'],
|
||||
|
||||
@@ -39,7 +39,7 @@ dependencies = [
|
||||
types_dep,
|
||||
]
|
||||
|
||||
libPolySolver = static_library('polySolver',
|
||||
libPolySolver = shared_library('polySolver',
|
||||
polySolver_sources,
|
||||
include_directories : include_directories('./public'),
|
||||
cpp_args: ['-fvisibility=default'],
|
||||
|
||||
@@ -34,7 +34,7 @@ dependencies = [
|
||||
mfemanalysis_dep,
|
||||
]
|
||||
|
||||
libpolyutils = library('polyutils',
|
||||
libpolyutils = shared_library('polyutils',
|
||||
polyutils_sources,
|
||||
include_directories : include_directories('./public'),
|
||||
cpp_args: ['-fvisibility=default'],
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include "composition/bindings.h"
|
||||
#include "config/bindings.h"
|
||||
|
||||
PYBIND11_MODULE(fourdsse_bindings, m) {
|
||||
m.doc() = "Python bindings for the 4DSSE project";
|
||||
PYBIND11_MODULE(serif, m) {
|
||||
m.doc() = "Python bindings for the SERiF project";
|
||||
|
||||
auto compMod = m.def_submodule("composition", "Composition-module bindings");
|
||||
register_comp_bindings(compMod);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[wrap-git]
|
||||
url = https://github.com/4D-STAR/opat-core
|
||||
revision = 0.3.1a
|
||||
revision = 0.3.3a
|
||||
depth = 1
|
||||
|
||||
Reference in New Issue
Block a user