Skip to content

Commit

Permalink
do make pyslow5 inside venv
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Oct 17, 2022
1 parent acadc74 commit d814e56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ git clone [email protected]:hasindu2008/slow5lib.git
cd slow5lib
make

# CHOOSE A OR B:
# CHOOSE A OR B:
# (B is the cleanest method)
# |=======================================================================|
# |A. Install with pip if wheel is present, otherwise it uses setuptools |
Expand Down
3 changes: 2 additions & 1 deletion python/pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ make clean
rm -f dist/* valgrind.log
test -d ./venv && rm -r ./venv

make pyslow5 || die "make pyslow5 failed"

${PYTHON} -m venv ./venv || die "Failed to create virtual environment"
source ./venv/bin/activate || die "Failed to activate virtual environment"
pip install --upgrade pip wheel numpy || die "Failed to update pip"
make pyslow5 || die "make pyslow5 failed"
pip install dist/*.tar.gz
python3 python/example.py || die "Failed to run example.py"
python3 -m unittest -v python/test.py || die "Failed to run test.py"
Expand Down
1 change: 1 addition & 0 deletions python/valgrind-python.supp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@
Suppress leaking the _PyEval_EvalFrameDefault
Memcheck:Leak
fun:malloc
fun:_PyObject_GC_NewVar
...
fun:_PyEval_EvalFrameDefault
}

0 comments on commit d814e56

Please sign in to comment.