Skip to content
Snippets Groups Projects
Commit d7459e29 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

read default Python version from local config file, not the system one

parent cc6e80ca
No related branches found
No related tags found
No related merge requests found
......@@ -2,15 +2,15 @@
all: run check
DPY=$(shell pyversions -d)
DPY=$(shell PYTHONPATH=../../ python -c 'import debpython.version as v; print(v.vrepr(v.DEFAULT))')
run: clean
dpkg-buildpackage -b -us -uc
check:
grep -q "pycompile -p python-foo /usr/lib/python-foo -V $(shell pyversions -vd)"\
grep -q "pycompile -p python-foo /usr/lib/python-foo -V $(DPY)"\
debian/python-foo/DEBIAN/postinst
test -f debian/python-foo/usr/lib/${DPY}/dist-packages/foo/bar.so
test -f debian/python-foo/usr/lib/python${DPY}/dist-packages/foo/bar.so
test ! -f debian/python-foo/usr/share/pyshared/foo/bar.so
clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment