Skip to content

Commit

Permalink
rename python module created from pybind11
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 2, 2023
1 parent c138671 commit 99455e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ project(
VERSION ${SKBUILD_PROJECT_VERSION}
LANGUAGES CXX)

set(PYTHON_MODULE_NAME _core)
set(PYTHON_MODULE_NAME geant4_application)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN git clone https://github.com/Geant4/geant4.git /tmp/geant4 --branch=${GEANT4
&& cmake --build /tmp/geant4/build -j$(nproc) --target install \
&& rm -rf /tmp/geant4

ENV LD_LIBRARY_PATH=/opt/conda/lib/:/usr/local/lib:$LD_LIBRARY_PATH
# RUN geant4-config --install-datasets

COPY . /source
Expand Down
4 changes: 2 additions & 2 deletions src/geant4_python_application/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def install_datasets(always: bool = False) -> None:

load_libs()

from geant4_python_application._core import (
from geant4_python_application.gdml import basic_gdml
from geant4_python_application.geant4_application import (
Application,
PrimaryGeneratorAction,
StackingAction,
Expand All @@ -85,7 +86,6 @@ def install_datasets(always: bool = False) -> None:
__pybind11_version__,
__version__,
)
from geant4_python_application.gdml import basic_gdml

if _geant4_version != __geant4_version__:
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion src/python/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace py = pybind11;
using namespace geant4_app;

PYBIND11_MODULE(_core, m) {
PYBIND11_MODULE(geant4_application, m) {
m.doc() = R"pbdoc(
Geant4 Python Application
-------------------------
Expand Down

0 comments on commit 99455e3

Please sign in to comment.