File: 0003-Fix-python-install-failed-with-pip-due-to-lack-of-ne.patch

package info (click to toggle)
mrpt 1%3A2.14.15%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 92,788 kB
  • sloc: cpp: 558,736; ansic: 36,840; xml: 3,864; python: 2,195; sh: 524; makefile: 232
file content (23 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Jose Luis Blanco-Claraco <joseluisblancoc@gmail.com>
Date: Sun, 9 Nov 2025 22:46:13 +0100
Subject: Fix: python install failed with pip due to lack of network access

---
 parse-files/install-python.cmake.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/parse-files/install-python.cmake.in b/parse-files/install-python.cmake.in
index 9f44d51..ad7d278 100644
--- a/parse-files/install-python.cmake.in
+++ b/parse-files/install-python.cmake.in
@@ -8,9 +8,7 @@ else()
 endif()
 
 set(cmd_
-    @Python3_EXECUTABLE@ -m pip install .
-        --target=${INSTALL_ROOT_DIR}/@PYTHON_INSTALL_DIR@
-        --ignore-installed
+    @Python3_EXECUTABLE@ setup.py install --root=$ENV{DESTDIR} --prefix=/usr/  --install-layout=deb
 )
 
 string(REPLACE ";" " " _cmd_print "${cmd_}")