Skip to content

Commit b51d577

Browse files
committed
python: enter/exit venv for running swig tests
1 parent 944f266 commit b51d577

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ endif
339339
if USE_SWIG_PYTHON
340340
check-swig-python:
341341
$(AM_V_at)$(PYTHON) -m virtualenv $(top_builddir)/venv
342+
$(AM_V_at). $(top_builddir)/venv/activate
342343
$(AM_V_at)$(top_builddir)/venv/bin/python -m pip install $(top_srcdir)
343344
$(AM_V_at)$(top_builddir)/venv/bin/python swig_python/contrib/aes.py
344345
$(AM_V_at)$(top_builddir)/venv/bin/python swig_python/contrib/aes.py
@@ -355,6 +356,8 @@ if BUILD_ELEMENTS
355356
$(AM_V_at)$(top_builddir)/venv/bin/python swig_python/contrib/elements_tx.py
356357
$(AM_V_at)$(top_builddir)/venv/bin/python pyexample/liquid/receive-send.py
357358
endif
359+
$(AM_V_at)deactivate
360+
358361
else # USE_SWIG_PYTHON
359362
check-swig-python: ;
360363
endif # USE_SWIG_PYTHON

0 commit comments

Comments
 (0)