|
@@ -162,7 +162,8 @@ debug_install: install debug ## Install standard and debug libraries.
|
|
|
.PHONY: clean ## Clean up artifacts, including language parsers.
|
|
|
clean:
|
|
|
rm -f src/*.[aod] ./*.[aod] src/codec/*.[aod] src/codec/*.out
|
|
|
- rm -rf build/*
|
|
|
+ rm -rf build/ dist/ lsup_rdf.egg-info/
|
|
|
+ rm -f *.so
|
|
|
rm -f include/codec/grammar_*.h
|
|
|
rm -f src/codec/{grammar,parser}_*.c
|
|
|
|
|
@@ -251,9 +252,16 @@ footprint: bin/perftest ## Measure memory footprint by generating and storing 10
|
|
|
"massif-visualizer or similar."
|
|
|
|
|
|
|
|
|
+.PHONY: py_module
|
|
|
+py_module: codec
|
|
|
+ pip3 install build==0.8.0
|
|
|
+ pip3 uninstall -y lsup_rdf
|
|
|
+ python3 -m build
|
|
|
+ pip3 install --no-index --find-links=dist/ lsup_rdf
|
|
|
+
|
|
|
+
|
|
|
.PHONY: pytest
|
|
|
-pytest: codec_dbg ## Run a test suite for the Python package.
|
|
|
- pip3 install --user -e .
|
|
|
+pytest: py_module ## Run a test suite for the Python package.
|
|
|
python3 test/cpython_test.py
|
|
|
|
|
|
|