From 05bb1c63be39e31932f6ae4dd154414444790954 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Jun 04 2019 07:44:34 +0000 Subject: remove precompiled Cython code to ensure we always built "from source" --- diff --git a/borgbackup.spec b/borgbackup.spec index 124538b..0d8af71 100644 --- a/borgbackup.spec +++ b/borgbackup.spec @@ -55,6 +55,10 @@ rm -rf %{srcname}.egg-info # remove copies of bundled libraries to ensure these don't end up in our # binaries rm -rf src/borg/algorithms/{blake2,lz4,zstd} +# remove precompiled Cython code to ensure we always built "from source" +find src/ -name '*.pyx' | sed -e 's/.pyx/.c/g' | xargs rm -f +# bundled msgpack uses C++ for its generated sources +find src/ -name '*.pyx' | sed -e 's/.pyx/.cpp/g' | xargs rm -f # https://bugzilla.redhat.com/show_bug.cgi?id=1630992 sed -i 's/msgpack-python/msgpack/' setup.py