File: pip-break-sys-pkg.patch

package info (click to toggle)
jeolib-jiplib 1.1.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,596 kB
  • sloc: cpp: 40,742; python: 2,784; sh: 49; makefile: 21; ansic: 5
file content (14 lines) | stat: -rw-r--r-- 718 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: This is a patch to manage pip-based installation in upstream cmaks configuration
Author: Francesco Paolo Lovergine <frankie@debian.org>
Forwarded: not-needed

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -700,6 +700,6 @@
         DESTINATION lib/pkgconfig
 )
 INSTALL(CODE
-  "execute_process(COMMAND ${Python_EXECUTABLE} -m pip install ${_pip_args} ${CMAKE_CURRENT_BINARY_DIR}/jiplib-${JIPLIB_VERSION}-py3-none-any.whl --force-reinstall)"
+  "execute_process(COMMAND ${Python_EXECUTABLE} -m pip install --root-user-action ignore --prefix usr --verbose --break-system-packages ${_pip_args} ${CMAKE_CURRENT_BINARY_DIR}/jiplib-${JIPLIB_VERSION}-py3-none-any.whl --force-reinstall)"
   COMPONENT wheels
   )