File: debian-path.patch

package info (click to toggle)
deltarpm 3.6.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: ansic: 11,503; perl: 3,661; python: 296; makefile: 133
file content (16 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use the Debian install path for the Python module
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2024-09-01

--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@
 	install -m 644 drpmsync.8 $(DESTDIR)$(mandir)/man8
 	for PY in $(PYTHONS) ; do \
 		if [ -x /usr/bin/$$PY ]; then \
-                        PYLIB=`$$PY -c 'import sysconfig ; print(sysconfig.get_path("platlib"))'` ; \
+                        PYLIB=`$$PY -c 'import sysconfig ; print(sysconfig.get_path("platlib", scheme="deb_system"))'` ; \
 			PYVER=`$$PY -c 'import sysconfig ; print(sysconfig.get_python_version())'` ; \
 			if [ -e python$$PYVER/_deltarpmmodule.so ]; then \
 				mkdir -p $(DESTDIR)$(pylibprefix)$$PYLIB ; \