File: python-setuptools.diff

package info (click to toggle)
lensfun 0.3.95-6
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,796 kB
  • sloc: xml: 34,868; cpp: 10,776; python: 3,617; ansic: 587; sh: 70; makefile: 13; javascript: 3
file content (17 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Pino Toscano <pino@debian.org>
Description: Fix the installation of the Python module
 - move the installation root ($DESTDIR) as --root parameter
 - specify --single-version-externally-managed, so the module is not installed
   as single egg file
Forwarded: not-needed
Last-Update: 2023-07-23

--- a/apps/CMakeLists.txt
+++ b/apps/CMakeLists.txt
@@ -42,5 +42,5 @@ IF(PYTHON)
     IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX)
       SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
     ENDIF()
-    INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})")
+    INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX} --single-version-externally-managed --root=\$ENV{DESTDIR})")
 ENDIF(PYTHON)