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
46
46
export C_INCLUDE_PATH=$SLEEF_DIR /include
47
47
export CPLUS_INCLUDE_PATH=$SLEEF_DIR /include
48
48
49
+ # setup the virtual env
50
+ python3 -m venv temp
51
+ source temp/bin/activate
52
+
49
53
# Install the package
50
54
pip 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
53
62
```
54
63
Original file line number Diff line number Diff line change 7
7
rm -r build
8
8
fi
9
9
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
+
11
20
python -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"
13
21
python -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