File: 0006-Fix-install-path-for-.py-files.patch

package info (click to toggle)
bornagain 23.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,936 kB
  • sloc: cpp: 423,131; python: 40,997; javascript: 11,167; awk: 630; sh: 318; ruby: 173; xml: 130; makefile: 51; ansic: 24
file content (28 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Roland Mas <lolando@debian.org>
Date: Sat, 29 Jul 2023 14:20:25 +0200
Subject: Fix install path for *.py files

---
 cmake/multipython/PyDependences.cmake | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/cmake/multipython/PyDependences.cmake b/cmake/multipython/PyDependences.cmake
index 3c46753..84663f5 100644
--- a/cmake/multipython/PyDependences.cmake
+++ b/cmake/multipython/PyDependences.cmake
@@ -10,6 +10,15 @@ else()
     find_custom_python3(DEFAULT_PATH VERBOSE)
 endif()
 
+set(pyversion ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
+set(pydst "${destination_root}lib/python3")
+set(destination_python
+    "${pydst}/dist-packages/")
+set(destination_pypackage ${pydst}/wheel)
+
+message(STATUS "Python destination directory: ${destination_python}")
+message(STATUS "Python package destination directory: ${destination_pypackage}")
+
 # check presence of some Python modules
 message(STATUS "Searching required Python packages...")
 set(py_packages "")