I have got this error from launchpad:
cp __targets_dynlib/anonpy.so /usr/lib/python3/dist-packages/
cp: cannot create regular file '/usr/lib/python3/dist-packages/anonpy.so': Permission denied
How do I fix that?
My install target:
DESTDIR?=""
PREFIX?="/usr"
.PHONY: install
install: all make_pkgconfig.sh
mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/include/anon
mkdir -p $(DESTDIR)$(PREFIX)/lib
mkdir -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
cp __targets_staticlib/libanon.a $(DESTDIR)$(PREFIX)/lib/libanon.a
find -maxdepth 1 -name '*.hpp' \
| while read in; do grep -v '^//@' "$$in" \
> $(DESTDIR)$(PREFIX)/include/anon/$$in; done
./make_pkgconfig.sh $(PREFIX) $(DESTDIR)$(PREFIX)/lib/pkgconfig/anon.pc
cp __targets_dynlib/anonpy.so /usr/lib/python3/dist-packages/
Complete log: https://launchpadlibrarian.net/589269668/buildlog_ubuntu-focal-amd64.anon_1.0.0-4milasudril4~focal_BUILDING.txt.gz
I need to have use DESTDIR and PREFIX on that line also
cp __targets_dynlib/anonpy.so $(DESTDIR)$(PREFIX)/lib/python3/dist-packages/