You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix: CasADi linking to work with pip isolated build environments
This commit resolves a build failure that occurred when building the package
with pip/nox due to pip's use of isolated and changing build environments.
Problem:
- CMake was using find_library() to get the absolute path to libcasadi.dylib
during configuration in one temporary pip build environment
- By the time the actual build ran, pip had switched to a different temporary
build environment, making the hard-coded library path invalid
- This caused: "No rule to make target .../libcasadi.dylib" error
Solution:
- Link against CasADi by library name instead of absolute path, relying on
target_link_directories() to provide the search path during build
- Use relative RPATH (@loader_path on macOS, $ORIGIN on Linux) so the built
module can find CasADi in the same Python environment at runtime
- Set BUILD_RPATH for the build environment and INSTALL_RPATH for runtime
- Remove duplicate casadi link (already added in USE_PYTHON_CASADI section)
* tests: adds initial test suite w/ basic functionality
* infra: adds __version__ to package, adds nox to dev dependencies w/ uv backend preference
* tests: adds benchmark session, uv backend for nox, updates to unit suite, integration_tests.yml uses nox session, updates docs
* benchmarks: remove icons
* Fix: RPath installation bool, updates PYBAMM_ENV in noxfile, adds nox install to workflow
* test: try condition RPATH
* fix: precommit, integration workflow missing uv
* benchmarks: update regression threshold, increase repeats, try: fix windows build
* fix: integration workflow
* CI: unifi package management
* benchmarks: timeit implementation
* test: adds casadi-based integration tests, removes simplistic unit tests (#70)
* precommit additions
* Suggestions from review
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
* precommit additions
* fix: avoid single-element vector operations for MacOS-intel
* another test: separate negate from casadi symbol
* infra: skip macosx_x86_x64 tests for build_wheels.yml
* infra: test level skip instead of workflow level
---------
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
0 commit comments