From 4db352cddf155dd3487ba21a2439ea3caa898761 Mon Sep 17 00:00:00 2001 From: Alessio Igor Bogani Date: Thu, 26 Oct 2017 14:40:57 +0200 Subject: [PATCH] Fix build against Python3.6 Build SRW against Python3.6 produces srwlpy.cpython-36m-x86_64-linux-gnu.so instead of srwlpy.so that breaks make which stops the compilation process. Change Makefile to cover both cases. Built tested against Python2.7 and Python3.6. --- cpp/py/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/py/Makefile b/cpp/py/Makefile index 4b215f49..f66bf45e 100644 --- a/cpp/py/Makefile +++ b/cpp/py/Makefile @@ -4,10 +4,10 @@ python: srwlpy.so srwlpy.so: python setup.py build_ext --build-lib='../gcc' - cp ../gcc/srwlpy.so ../../env/work/srw_python/ + cp ../gcc/srwlpy*.so ../../env/work/srw_python/ rm -rf build clean: rm -rf build - rm -f ../gcc/srwlpy.so - rm -f ../../env/work/srw_python/srwlpy.so \ No newline at end of file + rm -f ../gcc/srwlpy*.so + rm -f ../../env/work/srw_python/srwlpy.so