Author: Andreas Tille <tille@debian.org>
Last-Update: 2018-12-11
Description: Use Cython3/Python3

--- a/bindings/python/Makefile
+++ b/bindings/python/Makefile
@@ -6,8 +6,7 @@ edlib: $(shell find ../../edlib)
 	rm -rf edlib && cp -r ../../edlib .
 
 pyedlib.bycython.cpp: edlib.pyx cedlib.pxd
-	python -m pip install cython
-	cython --cplus edlib.pyx -o edlib.bycython.cpp
+	cython3 --cplus edlib.pyx -o edlib.bycython.cpp
 
 # To build package, README.rst is needed, because it goes into long description of package,
 # which is what is visible on PyPI.
@@ -18,19 +17,18 @@ pyedlib.bycython.cpp: edlib.pyx cedlib.p
 BUILD_SOURCE_FILES=edlib pyedlib.bycython.cpp setup.py
 
 buildWithoutREADME.rst: ${BUILD_SOURCE_FILES}
-	EDLIB_OMIT_README_RST=1 python setup.py build_ext -i
+	EDLIB_OMIT_README_RST=1 python3 setup.py build_ext -i
 
 README.rst: buildWithoutREADME.rst README-tmpl.rst
-	python -m pip install cogapp
 	cog -d -o README.rst README-tmpl.rst	
 
 BUILD_FILES=${BUILD_SOURCE_FILES} README.rst
 
 build: ${BUILD_FILES}
-	python setup.py build_ext -i
+	python3 setup.py build_ext -i
 
 sdist: edlib pyedlib.bycython.cpp setup.py README.rst MANIFEST.in
-	python setup.py sdist
+	python3 setup.py sdist
 
 publish: clean sdist
 	twine upload dist/*
