Add scaffolding for SBML and python wrappers#4
Open
kwabenantim wants to merge 55 commits into
Open
Conversation
When setup_project.py is run with Python bindings opted in, it: - Substitutes the project name into dynamic/config.yaml and dynamic/CMakeLists.txt, which set up CPPWG-based wrapper generation - Renames src/py/template_project/ to src/py/<project_name>/ and substitutes the project name into the Python package files - Leaves dynamic/ and src/py/ in place for the build system to use When opted out, dynamic/ and src/py/ are removed. The build scripts are extended accordingly: - common.sh auto-detects Chaste_ENABLE_PYCHASTE from dynamic/config.yaml and guards against CHASTE_BUILD_DIR pointing at the project root - configure.sh passes Chaste_ENABLE_PYCHASTE to cmake - compile.sh builds pychaste then _<project>_all when pychaste is enabled, or the C++ project library only when it is not - install.sh (new) creates .virtualenv/ and pip-installs the pychaste and project Python packages from the build directory - .github/workflows/test-python-project.yml (new) tests the full pipeline using the chaste/develop container Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
|
This currently needs hardening for cases where errors in Some potential steps to address this:
|
Member
Author
|
This also needs to work outside a chaste docker environment where the extra pychaste dependencies are preinstalled. Potential steps to address this:
|
Add SBML template project
- Stop vendoring the SBML base classes in src/; sbml_install.sh now copies them from the installed chaste-sbml package via 'chaste-sbml copy-base-classes'. - Drop the vendored-file handling from setup_project.py. - Use the chaste-sbml command and its generate subcommand in the workflow, README, and Goldbeter example. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supports #3