File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build"
55
66[project ]
77name = " libcachesim"
8- version = " 0.0 .1"
8+ version = " 0.3 .1"
99description =" Python bindings for libCacheSim"
1010readme = " README.md"
1111requires-python = " >=3.9"
Original file line number Diff line number Diff line change 22#include < pybind11/pybind11.h>
33#include < pybind11/stl.h>
44
5+ // Suppress visibility warnings for pybind11 types
6+ #pragma GCC diagnostic push
7+ #pragma GCC diagnostic ignored "-Wattributes"
8+
59#include < iostream>
610#include < memory>
711#include < unordered_map>
@@ -139,6 +143,9 @@ class PythonHookCache {
139143 }
140144};
141145
146+ // Restore visibility warnings
147+ #pragma GCC diagnostic pop
148+
142149struct CacheDeleter {
143150 void operator ()(cache_t * ptr) const {
144151 if (ptr != nullptr ) ptr->cache_free (ptr);
Original file line number Diff line number Diff line change 33# Build the main libCacheSim C++ library first
44echo " Building main libCacheSim library..."
55rm -rf ./build
6- cmake -G Ninja -B build -DENABLE_3L_CACHE=ON
6+ cmake -G Ninja -B build # -DENABLE_3L_CACHE=ON
77ninja -C build
88
99# Now build and install the Python binding
1010echo " Building Python binding..."
11- cd libCacheSim-python
11+ echo " Sync python version..."
12+ python scripts/sync_python_version.py
13+ pushd libCacheSim-python
1214pip install -e . -vvv
13- cd ..
15+ popd
1416
1517# Test that the import works
1618echo " Testing import..."
1719python -c " import libcachesim"
1820
1921# Run tests
2022echo " Running tests..."
21- cd libCacheSim-python
23+ pushd libCacheSim-python
2224pytest .
23- cd ..
25+ popd
You can’t perform that action at this time.
0 commit comments