Skip to content

Commit bd90748

Browse files
committed
updating readme
1 parent 930a8e2 commit bd90748

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

quaddtype/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ export LIBRARY_PATH=$SLEEF_DIR/lib
4646
export C_INCLUDE_PATH=$SLEEF_DIR/include
4747
export 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
5054
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
5362
```
5463

quaddtype/reinstall.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ then
77
rm -r build
88
fi
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+
1120
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"
1321
python -m pip install . -v --no-build-isolation -Cbuilddir=build -C'compile-args=-v'

0 commit comments

Comments
 (0)