File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,18 @@ export LIBRARY_PATH=$SLEEF_DIR/lib
4646export C_INCLUDE_PATH=$SLEEF_DIR /include
4747export CPLUS_INCLUDE_PATH=$SLEEF_DIR /include
4848
49+ # setup the virtual env
50+ python3 -m venv temp
51+ source temp/bin/activate
52+
4953# Install the package
5054pip install meson-python numpy pytest
51- pip install -e . -v --no-build-isolation
52- export LD_LIBRARY_PATH=$SLEEF_DIR /lib
55+
56+ export LDFLAGS=" -Wl,-rpath,$SLEEF_DIR /lib"
57+ python -m pip install . -v --no-build-isolation -Cbuilddir=build -C' compile-args=-v'
58+
59+ # Run the tests
60+ cd ..
61+ python -m pytest
5362```
5463
Original file line number Diff line number Diff line change 77 rm -r build
88fi
99
10- # meson setup build -Db_sanitize=address,undefined
10+ export CC=clang
11+ export CXX=clang++
12+ export SLEEF_DIR=$PWD /sleef/build
13+ export LIBRARY_PATH=$SLEEF_DIR /lib
14+ export C_INCLUDE_PATH=$SLEEF_DIR /include
15+ export CPLUS_INCLUDE_PATH=$SLEEF_DIR /include
16+
17+ # Set RPATH via LDFLAGS
18+ export LDFLAGS=" -Wl,-rpath,$SLEEF_DIR /lib"
19+
1120python -m pip uninstall -y numpy_quaddtype
12- # python -m pip install . -v --no-build-isolation -Cbuilddir=build -C'compile-args=-v' -Csetup-args="-Dbuildtype=debug"
1321python -m pip install . -v --no-build-isolation -Cbuilddir=build -C' compile-args=-v'
You can’t perform that action at this time.
0 commit comments