Skip to content

Commit 84b2911

Browse files
committed
some utilities
1 parent 253322a commit 84b2911

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

quaddtype/reinstall.sh

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
#!/bin/bash
2-
set -xeuo pipefail
3-
IFS=$'\n\t'
2+
set -x
43

5-
if [ -d "build/" ]
6-
then
4+
if [ -d "build/" ]; then
75
rm -r build
6+
rm -rf dist/
7+
rm -rf subprojects/qblas
8+
rm -rf subprojects/sleef
89
fi
910

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"
1911

2012
python -m pip uninstall -y numpy_quaddtype
21-
python -m pip install . -v --no-build-isolation -Cbuilddir=build -C'compile-args=-v'
13+
python -m pip install . -v --no-build-isolation -Cbuilddir=build

quaddtype/sdist_test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -x
3+
4+
if [ -d "build/" ]; then
5+
rm -rf dist/
6+
fi
7+
8+
python -m pip uninstall -y numpy_quaddtype
9+
python -m build --sdist --outdir dist/
10+
python -m pip install dist/numpy_quaddtype-0.1.0.tar.gz -v --no-build-isolation -Cbuilddir=build

0 commit comments

Comments
 (0)