Merge lp:~muktupavels/compiz/ccsm-python3 into lp:compiz/0.9.13
- ccsm-python3
- Merge into 0.9.13
Status: | Merged |
---|---|
Approved by: | Dmitry Shachnev |
Approved revision: | 4187 |
Merged at revision: | 4190 |
Proposed branch: | lp:~muktupavels/compiz/ccsm-python3 |
Merge into: | lp:compiz/0.9.13 |
Diff against target: |
560 lines (+88/-132) 18 files modified
compizconfig/ccsm/CMakeLists.txt (+7/-11) compizconfig/ccsm/ccsm (+1/-1) compizconfig/ccsm/setup.cfg (+2/-0) compizconfig/ccsm/setup.py (+10/-10) compizconfig/cmake/exec_setup_py_with_destdir.cmake (+2/-1) compizconfig/compizconfig-python/CMakeLists.txt (+9/-30) compizconfig/compizconfig-python/compizconfig-python.pc.in (+0/-13) compizconfig/compizconfig-python/setup.py (+2/-3) compizconfig/compizconfig-python/src/compizconfig.pyx (+4/-3) compizconfig/compizconfig-python/tests/test_backend.py (+9/-9) compizconfig/compizconfig-python/tests/test_plugin.py (+10/-10) compizconfig/compizconfig-python/tests/test_setting.py (+14/-14) debian/compizconfig-settings-manager.install (+1/-2) debian/control (+14/-14) debian/python-compizconfig.install (+0/-3) debian/python-compizconfig.lintian-overrides (+0/-1) debian/python3-compizconfig.install (+2/-0) debian/rules (+1/-7) |
To merge this branch: | bzr merge lp:~muktupavels/compiz/ccsm-python3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dmitry Shachnev | Approve | ||
Review via email: mp+351940@code.launchpad.net |
Commit message
Port CCSM to Python 3.
Description of the change
- 4183. By Alberts Muktupāvels
-
Port CCSM to Python 3.
Dmitry Shachnev (mitya57) wrote : | # |
The packaging is fine now. For those who want to test it, it’s available in https:/
Note that it will need a no-change rebuild for Python default version change (e.g. 3.6 → 3.7).
Dmitry Shachnev (mitya57) : | # |
- 4184. By Alberts Muktupāvels
-
Remove python3-
compizconfig. lintian- overrides.
Khurshid Alam (khurshid-alam) wrote : | # |
Is this safe for unity? I didn't find anything related. But did you speak with 3v1n0?
Alberts Muktupāvels (muktupavels) wrote : | # |
Why would it be unsafe? I don't see what problems this could cause except for regressions in ccsm because of python2 -> python3 and/or gtk 2 -> gtk 3, and/or pygtk to pygobject.
Andrea Azzarone (azzar1) wrote : | # |
LGTM. Still need to run this. Could you please take a look to the only line-comment?
Dmitry Shachnev (mitya57) : | # |
Andrea Azzarone (azzar1) wrote : | # |
Would it make sense to rename compizconfig-
- 4185. By Alberts Muktupāvels
-
Rename compizconfig-
python. pc to compizconfig- python3. pc and remove Breaks/Replaces.
Dmitry Shachnev (mitya57) wrote : | # |
I think the .pc file for Python is just not needed, nothing is using it now.
Alberts Muktupāvels (muktupavels) wrote : | # |
compizconfig-
prefix=/usr
exec_prefix=
libdir=
includedir=
pyexecdir=
Name: compizconfig-
Version: 0.9.13.1
Description: Compiz configuration system bindings
Requires:
Libs: -L/usr/
Cflags: -I/usr/
libcompizconfig.pc:
prefix=/usr
exec_prefix=
libdir=
includedir=
Name: libcompizconfig
Description: Compiz configuration system
Version: 0.9.13.1
Requires: compiz
Libs: -L/usr/
Cflags: -I/usr/
Both files would find libcompizconfig.so that is installed by libcompizconfig
- 4186. By Alberts Muktupāvels
-
Remove compizconfig-
python3. pc.
Andrea Azzarone (azzar1) wrote : | # |
Changes looks good to me now. You need to propose a change for unity-autopilot too in order to get this accepted. Also a FFE is required (https:/
Andrea Azzarone (azzar1) wrote : | # |
unity-autopilot is python2 code. You have two options here:
1) have both python-compizconfig and python3-
2) port unity-autopilot to python3 (tbh I'm not sure how much work this would be)
- 4187. By Alberts Muktupāvels
-
Fix inconsistent use of tabs and spaces in indentation.
Dmitry Shachnev (mitya57) wrote : | # |
unity-autopilot is ported in https:/
Preview Diff
1 | === modified file 'compizconfig/ccsm/CMakeLists.txt' | |||
2 | --- compizconfig/ccsm/CMakeLists.txt 2012-10-16 13:53:20 +0000 | |||
3 | +++ compizconfig/ccsm/CMakeLists.txt 2018-09-05 09:24:50 +0000 | |||
4 | @@ -10,14 +10,12 @@ | |||
5 | 10 | 10 | ||
6 | 11 | # Get arch | 11 | # Get arch |
7 | 12 | execute_process (COMMAND uname -p OUTPUT_VARIABLE PROC_ARCH) | 12 | execute_process (COMMAND uname -p OUTPUT_VARIABLE PROC_ARCH) |
8 | 13 | string (REPLACE "\n" "" PROC_ARCH ${PROC_ARCH}) | ||
9 | 13 | 14 | ||
10 | 14 | # Get Python Version | 15 | # Get Python Version |
17 | 15 | execute_process (COMMAND python -c "import sys; print str (sys.version_info[0]) + '.' + str (sys.version_info[1])" | 16 | find_package (PythonInterp 3.0 REQUIRED) |
18 | 16 | OUTPUT_VARIABLE PY_VERSION) | 17 | |
19 | 17 | 18 | set (PY_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | |
14 | 18 | string (REPLACE "\n" "" PROC_ARCH ${PROC_ARCH}) | ||
15 | 19 | string (REPLACE "\n" "" PY_VERSION ${PY_VERSION}) | ||
16 | 20 | |||
20 | 21 | set (PY_BUILD_DIR lib.linux-${PROC_ARCH}-${PY_VERSION}) | 19 | set (PY_BUILD_DIR lib.linux-${PROC_ARCH}-${PY_VERSION}) |
21 | 22 | set (PY_SCRIPTS_DIR scripts-${PY_VERSION}) | 20 | set (PY_SCRIPTS_DIR scripts-${PY_VERSION}) |
22 | 23 | 21 | ||
23 | @@ -36,19 +34,17 @@ | |||
24 | 36 | set (VERSION ${COMPIZ_RELEASE_VERSION}) | 34 | set (VERSION ${COMPIZ_RELEASE_VERSION}) |
25 | 37 | 35 | ||
26 | 38 | add_custom_command (OUTPUT ${PY_CCSM_LIB} | 36 | add_custom_command (OUTPUT ${PY_CCSM_LIB} |
28 | 39 | COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build --build-base=${CMAKE_CURRENT_BINARY_DIR}/build --version=${VERSION} | 37 | COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build --build-base=${CMAKE_CURRENT_BINARY_DIR}/build --version=${VERSION} |
29 | 40 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | 38 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
30 | 41 | COMMENT "Generating Python Bytecode") | 39 | COMMENT "Generating Python Bytecode") |
31 | 42 | 40 | ||
32 | 43 | add_custom_target (ccsm_module ALL DEPENDS | 41 | add_custom_target (ccsm_module ALL DEPENDS |
33 | 44 | ${PY_CCSM_LIB}) | 42 | ${PY_CCSM_LIB}) |
34 | 45 | 43 | ||
36 | 46 | set (UNINSTALL_COMMAND "python ${CMAKE_CURRENT_SOURCE_DIR}/setup.py uninstall --prefix=${CMAKE_INSTALL_PREFIX} --version=${VERSION}") | 44 | set (UNINSTALL_COMMAND "${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py uninstall --prefix=${CMAKE_INSTALL_PREFIX} --version=${VERSION}") |
37 | 47 | 45 | ||
38 | 48 | compiz_add_code_to_uninstall_target (${UNINSTALL_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR}) | 46 | compiz_add_code_to_uninstall_target (${UNINSTALL_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR}) |
39 | 49 | 47 | ||
40 | 50 | install (CODE | 48 | install (CODE |
41 | 51 | "message (\"Installing python files\") | 49 | "message (\"Installing python files\") |
45 | 52 | execute_process (COMMAND cmake -DSETUP=${CMAKE_CURRENT_SOURCE_DIR}/setup.py -DPREFIX=${CMAKE_INSTALL_PREFIX} -DWDIR=${CMAKE_CURRENT_SOURCE_DIR} -DVERSION=${VERSION} -P ${compiz_SOURCE_DIR}/compizconfig/cmake/exec_setup_py_with_destdir.cmake)") | 50 | execute_process (COMMAND cmake -DPY_EXECUTABLE=${PYTHON_EXECUTABLE} -DSETUP=${CMAKE_CURRENT_SOURCE_DIR}/setup.py -DPREFIX=${CMAKE_INSTALL_PREFIX} -DWDIR=${CMAKE_CURRENT_SOURCE_DIR} -DVERSION=${VERSION} -P ${compiz_SOURCE_DIR}/compizconfig/cmake/exec_setup_py_with_destdir.cmake)") |
43 | 53 | |||
44 | 54 | |||
46 | 55 | 51 | ||
47 | === modified file 'compizconfig/ccsm/ccsm' | |||
48 | --- compizconfig/ccsm/ccsm 2018-07-11 21:59:31 +0000 | |||
49 | +++ compizconfig/ccsm/ccsm 2018-09-05 09:24:50 +0000 | |||
50 | @@ -1,4 +1,4 @@ | |||
52 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python3 |
53 | 2 | # -*- coding: UTF-8 -*- | 2 | # -*- coding: UTF-8 -*- |
54 | 3 | 3 | ||
55 | 4 | # This program is free software; you can redistribute it and/or | 4 | # This program is free software; you can redistribute it and/or |
56 | 5 | 5 | ||
57 | === added file 'compizconfig/ccsm/setup.cfg' | |||
58 | --- compizconfig/ccsm/setup.cfg 1970-01-01 00:00:00 +0000 | |||
59 | +++ compizconfig/ccsm/setup.cfg 2018-09-05 09:24:50 +0000 | |||
60 | @@ -0,0 +1,2 @@ | |||
61 | 1 | [build] | ||
62 | 2 | executable = /usr/bin/env python3 | ||
63 | 0 | 3 | ||
64 | === modified file 'compizconfig/ccsm/setup.py' | |||
65 | --- compizconfig/ccsm/setup.py 2013-04-28 04:26:33 +0000 | |||
66 | +++ compizconfig/ccsm/setup.py 2018-09-05 09:24:50 +0000 | |||
67 | @@ -1,4 +1,4 @@ | |||
69 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python3 |
70 | 2 | 2 | ||
71 | 3 | import sys, os, glob | 3 | import sys, os, glob |
72 | 4 | import subprocess | 4 | import subprocess |
73 | @@ -48,15 +48,15 @@ | |||
74 | 48 | # Update icon cache | 48 | # Update icon cache |
75 | 49 | gtk_update_icon_cache = '''gtk-update-icon-cache -f -t \ | 49 | gtk_update_icon_cache = '''gtk-update-icon-cache -f -t \ |
76 | 50 | %s''' % icon_prefix | 50 | %s''' % icon_prefix |
79 | 51 | root_specified = len (filter (lambda s: s.startswith ("--root"), | 51 | root_specified = len (list (filter (lambda s: s.startswith ("--root"), |
80 | 52 | sys.argv)) > 0 | 52 | sys.argv))) > 0 |
81 | 53 | if not root_specified: | 53 | if not root_specified: |
83 | 54 | print "Updating Gtk icon cache." | 54 | print ("Updating Gtk icon cache.") |
84 | 55 | os.system (gtk_update_icon_cache) | 55 | os.system (gtk_update_icon_cache) |
85 | 56 | outputs.append (icon_theme_cache) | 56 | outputs.append (icon_theme_cache) |
86 | 57 | else: | 57 | else: |
89 | 58 | print '''*** Icon cache not updated. After install, run this: | 58 | print ('''*** Icon cache not updated. After install, run this: |
90 | 59 | *** %s''' % gtk_update_icon_cache | 59 | *** %s''' % gtk_update_icon_cache) |
91 | 60 | 60 | ||
92 | 61 | length = 0 | 61 | length = 0 |
93 | 62 | if self.root: | 62 | if self.root: |
94 | @@ -64,7 +64,7 @@ | |||
95 | 64 | if self.prefix: | 64 | if self.prefix: |
96 | 65 | length += len (self.prefix) | 65 | length += len (self.prefix) |
97 | 66 | if length: | 66 | if length: |
99 | 67 | for counter in xrange (len (outputs)): | 67 | for counter in range (len (outputs)): |
100 | 68 | outputs[counter] = outputs[counter][length:] | 68 | outputs[counter] = outputs[counter][length:] |
101 | 69 | data = "\n".join (outputs) | 69 | data = "\n".join (outputs) |
102 | 70 | try: | 70 | try: |
103 | @@ -114,10 +114,10 @@ | |||
104 | 114 | if self.prefix: | 114 | if self.prefix: |
105 | 115 | prepend += self.prefix | 115 | prepend += self.prefix |
106 | 116 | if len (prepend): | 116 | if len (prepend): |
108 | 117 | for counter in xrange (len (files)): | 117 | for counter in range (len (files)): |
109 | 118 | files[counter] = prepend + files[counter].rstrip () | 118 | files[counter] = prepend + files[counter].rstrip () |
110 | 119 | for file in files: | 119 | for file in files: |
112 | 120 | print "Uninstalling %s" % file | 120 | print ("Uninstalling %s" % file) |
113 | 121 | try: | 121 | try: |
114 | 122 | os.unlink (file) | 122 | os.unlink (file) |
115 | 123 | except: | 123 | except: |
116 | @@ -126,7 +126,7 @@ | |||
117 | 126 | ops = ("install", "build", "sdist", "uninstall", "clean") | 126 | ops = ("install", "build", "sdist", "uninstall", "clean") |
118 | 127 | 127 | ||
119 | 128 | if len (sys.argv) < 2 or sys.argv[1] not in ops: | 128 | if len (sys.argv) < 2 or sys.argv[1] not in ops: |
121 | 129 | print "Please specify operation : %s" % " | ".join (ops) | 129 | print ("Please specify operation : %s" % " | ".join (ops)) |
122 | 130 | raise SystemExit | 130 | raise SystemExit |
123 | 131 | 131 | ||
124 | 132 | prefix = None | 132 | prefix = None |
125 | 133 | 133 | ||
126 | === modified file 'compizconfig/cmake/exec_setup_py_with_destdir.cmake' | |||
127 | --- compizconfig/cmake/exec_setup_py_with_destdir.cmake 2012-09-06 12:17:40 +0000 | |||
128 | +++ compizconfig/cmake/exec_setup_py_with_destdir.cmake 2018-09-05 09:24:50 +0000 | |||
129 | @@ -1,3 +1,4 @@ | |||
130 | 1 | set (PY_EXECUTABLE "" CACHE FORCE "Python executable") | ||
131 | 1 | set (WDIR "" CACHE FORCE "Working Directory") | 2 | set (WDIR "" CACHE FORCE "Working Directory") |
132 | 2 | set (PREFIX "" CACHE FORCE "Prefix") | 3 | set (PREFIX "" CACHE FORCE "Prefix") |
133 | 3 | set (SETUP "" CACHE FORCE "Path to setup.py") | 4 | set (SETUP "" CACHE FORCE "Path to setup.py") |
134 | @@ -21,5 +22,5 @@ | |||
135 | 21 | set (EXTRAARGS "--install-layout=deb") | 22 | set (EXTRAARGS "--install-layout=deb") |
136 | 22 | endif (BUILD_DEB) | 23 | endif (BUILD_DEB) |
137 | 23 | 24 | ||
139 | 24 | execute_process (COMMAND python ${SETUP} install ${EXTRAARGS} --prefix=${PREFIX} --version=${VERSION} ${INSTALL_ROOT_ARGS} | 25 | execute_process (COMMAND ${PY_EXECUTABLE} ${SETUP} install ${EXTRAARGS} --prefix=${PREFIX} --version=${VERSION} ${INSTALL_ROOT_ARGS} |
140 | 25 | WORKING_DIRECTORY ${WDIR}) | 26 | WORKING_DIRECTORY ${WDIR}) |
141 | 26 | 27 | ||
142 | === modified file 'compizconfig/compizconfig-python/CMakeLists.txt' | |||
143 | --- compizconfig/compizconfig-python/CMakeLists.txt 2018-06-27 10:30:36 +0000 | |||
144 | +++ compizconfig/compizconfig-python/CMakeLists.txt 2018-09-05 09:24:50 +0000 | |||
145 | @@ -3,34 +3,20 @@ | |||
146 | 3 | 3 | ||
147 | 4 | # Get arch | 4 | # Get arch |
148 | 5 | execute_process (COMMAND uname -p OUTPUT_VARIABLE PROC_ARCH) | 5 | execute_process (COMMAND uname -p OUTPUT_VARIABLE PROC_ARCH) |
165 | 6 | 6 | string (REPLACE "\n" "" PROC_ARCH ${PROC_ARCH}) | |
166 | 7 | # Get Python Version | 7 | |
167 | 8 | execute_process (COMMAND python -c "import sys; print str (sys.version_info[0]) + '.' + str (sys.version_info[1])" | 8 | find_package (PythonInterp 3.0 REQUIRED) |
168 | 9 | OUTPUT_VARIABLE PY_VERSION) | 9 | find_package (PythonLibs 3.0 REQUIRED) |
153 | 10 | |||
154 | 11 | include (FindPkgConfig) | ||
155 | 12 | pkg_check_modules (PYTHON python-2.7) | ||
156 | 13 | |||
157 | 14 | # This is a workaround for a broken FindPythonLibs always finding the | ||
158 | 15 | # wrong library version because PYTHON_LIBRARY is in the cache and | ||
159 | 16 | # can't be overwritten | ||
160 | 17 | string (REGEX REPLACE "^([0-9]+\\.[0-9]+).*" "\\1" PYTHON_CURRENT_VERSION ${PY_VERSION}) | ||
161 | 18 | string (REPLACE "." "" PYTHON_CURRENT_VERSION_NO_DOTS ${PYTHON_CURRENT_VERSION}) | ||
162 | 19 | find_library (PYTHON_LIBRARY_LOCAL | ||
163 | 20 | NAMES python${PYTHON_CURRENT_VERSION_NO_DOTS} python${PYTHON_CURRENT_VERSION} | ||
164 | 21 | PATH_SUFFIXES python${PYTHON_CURRENT_VERSION}/config) | ||
169 | 22 | 10 | ||
170 | 23 | set (COMPIZCONFIG_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/compizconfig/libcompizconfig/include) | 11 | set (COMPIZCONFIG_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/compizconfig/libcompizconfig/include) |
171 | 24 | 12 | ||
175 | 25 | string (REPLACE "\n" "" PROC_ARCH ${PROC_ARCH}) | 13 | set (PY_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") |
173 | 26 | string (REPLACE "\n" "" PY_VERSION ${PY_VERSION}) | ||
174 | 27 | |||
176 | 28 | set (PY_BUILD_DIR lib.linux-${PROC_ARCH}-${PY_VERSION}) | 14 | set (PY_BUILD_DIR lib.linux-${PROC_ARCH}-${PY_VERSION}) |
177 | 29 | set (PY_SCRIPTS_DIR scripts-${PY_VERSION}) | 15 | set (PY_SCRIPTS_DIR scripts-${PY_VERSION}) |
178 | 30 | set (PY_COMPIZCONFIG_SRC ${CMAKE_CURRENT_BINARY_DIR}/compizconfig.c) | 16 | set (PY_COMPIZCONFIG_SRC ${CMAKE_CURRENT_BINARY_DIR}/compizconfig.c) |
179 | 31 | set (PY_COMPIZCONFIG_CYTHON ${CMAKE_CURRENT_SOURCE_DIR}/src/compizconfig.pyx) | 17 | set (PY_COMPIZCONFIG_CYTHON ${CMAKE_CURRENT_SOURCE_DIR}/src/compizconfig.pyx) |
180 | 32 | 18 | ||
182 | 33 | find_program(CYTHON_BIN cython) | 19 | find_program(CYTHON_BIN cython3) |
183 | 34 | if(NOT CYTHON_BIN) | 20 | if(NOT CYTHON_BIN) |
184 | 35 | message(FATAL_ERROR "Can not build because cython binary not found.") | 21 | message(FATAL_ERROR "Can not build because cython binary not found.") |
185 | 36 | endif() | 22 | endif() |
186 | @@ -44,9 +30,6 @@ | |||
187 | 44 | string (STRIP ${COMPIZ_RELEASE_VERSION} COMPIZ_RELEASE_VERSION) | 30 | string (STRIP ${COMPIZ_RELEASE_VERSION} COMPIZ_RELEASE_VERSION) |
188 | 45 | set (VERSION ${COMPIZ_RELEASE_VERSION}) | 31 | set (VERSION ${COMPIZ_RELEASE_VERSION}) |
189 | 46 | 32 | ||
190 | 47 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/compizconfig-python.pc.in | ||
191 | 48 | ${CMAKE_CURRENT_BINARY_DIR}/compizconfig-python.pc) | ||
192 | 49 | |||
193 | 50 | include_directories (${PYTHON_INCLUDE_DIRS} | 33 | include_directories (${PYTHON_INCLUDE_DIRS} |
194 | 51 | ${COMPIZCONFIG_INCLUDE_DIRS}) | 34 | ${COMPIZCONFIG_INCLUDE_DIRS}) |
195 | 52 | 35 | ||
196 | @@ -76,16 +59,13 @@ | |||
197 | 76 | compizconfig) | 59 | compizconfig) |
198 | 77 | 60 | ||
199 | 78 | target_link_libraries (compizconfig_python_module | 61 | target_link_libraries (compizconfig_python_module |
201 | 79 | ${PYTHON_LIBRARY_LOCAL} | 62 | ${PYTHON_LIBRARIES} |
202 | 80 | compizconfig) | 63 | compizconfig) |
203 | 81 | 64 | ||
205 | 82 | set (UNINSTALL_COMMAND "python ${CMAKE_CURRENT_SOURCE_DIR}/setup.py uninstall --prefix=${CMAKE_INSTALL_PREFIX} --version=${VERSION}") | 65 | set (UNINSTALL_COMMAND "${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py uninstall --prefix=${CMAKE_INSTALL_PREFIX} --version=${VERSION}") |
206 | 83 | 66 | ||
207 | 84 | compiz_add_code_to_uninstall_target (${UNINSTALL_COMMAND} ${CMAKE_CURRENT_BINARY_DIR}) | 67 | compiz_add_code_to_uninstall_target (${UNINSTALL_COMMAND} ${CMAKE_CURRENT_BINARY_DIR}) |
208 | 85 | 68 | ||
209 | 86 | install (FILES ${CMAKE_CURRENT_BINARY_DIR}/compizconfig-python.pc | ||
210 | 87 | DESTINATION ${libdir}/pkgconfig) | ||
211 | 88 | |||
212 | 89 | # This is probably not very portable, but we can't install using distutils | 69 | # This is probably not very portable, but we can't install using distutils |
213 | 90 | # as we cannot build with it safely | 70 | # as we cannot build with it safely |
214 | 91 | 71 | ||
215 | @@ -102,12 +82,11 @@ | |||
216 | 102 | 82 | ||
217 | 103 | install (CODE | 83 | install (CODE |
218 | 104 | "message (\"Installing python files\") | 84 | "message (\"Installing python files\") |
220 | 105 | execute_process (COMMAND cmake -DSETUP=${CMAKE_CURRENT_SOURCE_DIR}/setup.py -DPREFIX=${CMAKE_INSTALL_PREFIX} -DWDIR=${CMAKE_CURRENT_BINARY_DIR} -DVERSION=${VERSION} -P ${compiz_SOURCE_DIR}/compizconfig/cmake/exec_setup_py_with_destdir.cmake)") | 85 | execute_process (COMMAND cmake -DPY_EXECUTABLE=${PYTHON_EXECUTABLE} -DSETUP=${CMAKE_CURRENT_SOURCE_DIR}/setup.py -DPREFIX=${CMAKE_INSTALL_PREFIX} -DWDIR=${CMAKE_CURRENT_BINARY_DIR} -DVERSION=${VERSION} -P ${compiz_SOURCE_DIR}/compizconfig/cmake/exec_setup_py_with_destdir.cmake)") |
221 | 106 | 86 | ||
222 | 107 | if (COMPIZ_BUILD_TESTING) | 87 | if (COMPIZ_BUILD_TESTING) |
223 | 108 | 88 | ||
224 | 109 | find_program (BASH_EXECUTABLE bash) | 89 | find_program (BASH_EXECUTABLE bash) |
225 | 110 | find_program (PYTHON_EXECUTABLE python) | ||
226 | 111 | mark_as_advanced (FORCE PYTHON_EXECUTABLE) | 90 | mark_as_advanced (FORCE PYTHON_EXECUTABLE) |
227 | 112 | 91 | ||
228 | 113 | file (GLOB PYTHON_TESTS "tests/test_*.py") | 92 | file (GLOB PYTHON_TESTS "tests/test_*.py") |
229 | 114 | 93 | ||
230 | === removed file 'compizconfig/compizconfig-python/compizconfig-python.pc.in' | |||
231 | --- compizconfig/compizconfig-python/compizconfig-python.pc.in 2012-09-04 01:00:10 +0000 | |||
232 | +++ compizconfig/compizconfig-python/compizconfig-python.pc.in 1970-01-01 00:00:00 +0000 | |||
233 | @@ -1,13 +0,0 @@ | |||
234 | 1 | prefix=@prefix@ | ||
235 | 2 | exec_prefix=@exec_prefix@ | ||
236 | 3 | libdir=@libdir@ | ||
237 | 4 | includedir=@includedir@ | ||
238 | 5 | pyexecdir=@pyexecdir@ | ||
239 | 6 | |||
240 | 7 | Name: compizconfig-python | ||
241 | 8 | Version: @VERSION@ | ||
242 | 9 | Description: Compiz configuration system bindings | ||
243 | 10 | |||
244 | 11 | Requires: @CCS_REQUIRES@ | ||
245 | 12 | Libs: @CCS_LIBS@ -L@libdir@ -lcompizconfig | ||
246 | 13 | Cflags: @CCS_CFLAGS@ -I@includedir@/compizconfig | ||
247 | 14 | 0 | ||
248 | === modified file 'compizconfig/compizconfig-python/setup.py' | |||
249 | --- compizconfig/compizconfig-python/setup.py 2018-07-16 23:14:30 +0000 | |||
250 | +++ compizconfig/compizconfig-python/setup.py 2018-09-05 09:24:50 +0000 | |||
251 | @@ -18,7 +18,6 @@ | |||
252 | 18 | print ("CompizConfig Python [ERROR]: No libcompizconfig_internal.pc found in the pkg-config search path") | 18 | print ("CompizConfig Python [ERROR]: No libcompizconfig_internal.pc found in the pkg-config search path") |
253 | 19 | print ("Ensure that libcompizonfig is installed or libcompizconfig.pc is in your $PKG_CONFIG_PATH") | 19 | print ("Ensure that libcompizonfig is installed or libcompizconfig.pc is in your $PKG_CONFIG_PATH") |
254 | 20 | exit (1); | 20 | exit (1); |
255 | 21 | libs = pkgconfig_libs[2:].split (" ")[0] | ||
256 | 22 | 21 | ||
257 | 23 | INSTALLED_FILES = "installed_files" | 22 | INSTALLED_FILES = "installed_files" |
258 | 24 | 23 | ||
259 | @@ -59,7 +58,7 @@ | |||
260 | 59 | if self.prefix: | 58 | if self.prefix: |
261 | 60 | length += len (self.prefix) | 59 | length += len (self.prefix) |
262 | 61 | if length: | 60 | if length: |
264 | 62 | for counter in xrange (len (outputs)): | 61 | for counter in range (len (outputs)): |
265 | 63 | outputs[counter] = outputs[counter][length:] | 62 | outputs[counter] = outputs[counter][length:] |
266 | 64 | data = "\n".join (outputs) | 63 | data = "\n".join (outputs) |
267 | 65 | try: | 64 | try: |
268 | @@ -109,7 +108,7 @@ | |||
269 | 109 | if self.prefix: | 108 | if self.prefix: |
270 | 110 | prepend += self.prefix | 109 | prepend += self.prefix |
271 | 111 | if len (prepend): | 110 | if len (prepend): |
273 | 112 | for counter in xrange (len (files)): | 111 | for counter in range (len (files)): |
274 | 113 | files[counter] = prepend + files[counter].rstrip () | 112 | files[counter] = prepend + files[counter].rstrip () |
275 | 114 | for file in files: | 113 | for file in files: |
276 | 115 | print ("Uninstalling %s" % file) | 114 | print ("Uninstalling %s" % file) |
277 | 116 | 115 | ||
278 | === modified file 'compizconfig/compizconfig-python/src/compizconfig.pyx' | |||
279 | --- compizconfig/compizconfig-python/src/compizconfig.pyx 2018-06-27 10:30:36 +0000 | |||
280 | +++ compizconfig/compizconfig-python/src/compizconfig.pyx 2018-09-05 09:24:50 +0000 | |||
281 | @@ -1,3 +1,4 @@ | |||
282 | 1 | # cython: c_string_type=str, c_string_encoding=ascii | ||
283 | 1 | ''' | 2 | ''' |
284 | 2 | This program is free software; you can redistribute it and/or | 3 | This program is free software; you can redistribute it and/or |
285 | 3 | modify it under the terms of the GNU Lesser General Public License | 4 | modify it under the terms of the GNU Lesser General Public License |
286 | @@ -770,10 +771,10 @@ | |||
287 | 770 | if t == TypeString and i.forString.extensible: | 771 | if t == TypeString and i.forString.extensible: |
288 | 771 | self.hasExtendedString = True | 772 | self.hasExtendedString = True |
289 | 772 | 773 | ||
291 | 773 | if not self.ranking.has_key (ccsSettingGetName (sett)): | 774 | if ccsSettingGetName (sett) not in self.ranking: |
292 | 774 | self.ranking[ccsSettingGetName (sett)] = rank | 775 | self.ranking[ccsSettingGetName (sett)] = rank |
293 | 775 | rank = rank + 1 | 776 | rank = rank + 1 |
295 | 776 | 777 | ||
296 | 777 | setlist = setlist.next | 778 | setlist = setlist.next |
297 | 778 | 779 | ||
298 | 779 | self.loaded = True | 780 | self.loaded = True |
299 | @@ -1136,7 +1137,7 @@ | |||
300 | 1136 | cat = '' | 1137 | cat = '' |
301 | 1137 | else: | 1138 | else: |
302 | 1138 | cat = ccsPluginGetCategory (pl) | 1139 | cat = ccsPluginGetCategory (pl) |
304 | 1139 | if not self.categories.has_key (cat): | 1140 | if cat not in self.categories: |
305 | 1140 | self.categories[cat] = [] | 1141 | self.categories[cat] = [] |
306 | 1141 | self.categories[cat].append (self.plugins[ccsPluginGetName (pl)]) | 1142 | self.categories[cat].append (self.plugins[ccsPluginGetName (pl)]) |
307 | 1142 | pll = pll.next | 1143 | pll = pll.next |
308 | 1143 | 1144 | ||
309 | === modified file 'compizconfig/compizconfig-python/tests/test_backend.py' | |||
310 | --- compizconfig/compizconfig-python/tests/test_backend.py 2012-05-21 15:40:47 +0000 | |||
311 | +++ compizconfig/compizconfig-python/tests/test_backend.py 2018-09-05 09:24:50 +0000 | |||
312 | @@ -5,15 +5,15 @@ | |||
313 | 5 | 5 | ||
314 | 6 | def runTest (self): | 6 | def runTest (self): |
315 | 7 | 7 | ||
325 | 8 | info = ["ini", "Ini Backend", "Flat File Backend", True, False] | 8 | info = ["ini", "Ini Backend", "Flat File Backend", True, False] |
326 | 9 | 9 | ||
327 | 10 | backend = self.ccs.Backend (self.context, info) | 10 | backend = self.ccs.Backend (self.context, info) |
328 | 11 | 11 | ||
329 | 12 | self.assertEqual (backend.Name, "ini") | 12 | self.assertEqual (backend.Name, "ini") |
330 | 13 | self.assertEqual (backend.ShortDesc, "Ini Backend") | 13 | self.assertEqual (backend.ShortDesc, "Ini Backend") |
331 | 14 | self.assertEqual (backend.LongDesc, "Flat File Backend") | 14 | self.assertEqual (backend.LongDesc, "Flat File Backend") |
332 | 15 | self.assertEqual (backend.IntegrationSupport, False) | 15 | self.assertEqual (backend.IntegrationSupport, False) |
333 | 16 | self.assertEqual (backend.ProfileSupport, True) | 16 | self.assertEqual (backend.ProfileSupport, True) |
334 | 17 | 17 | ||
335 | 18 | if __name__ == '__main__': | 18 | if __name__ == '__main__': |
336 | 19 | unittest.main() | 19 | unittest.main() |
337 | 20 | 20 | ||
338 | === modified file 'compizconfig/compizconfig-python/tests/test_plugin.py' | |||
339 | --- compizconfig/compizconfig-python/tests/test_plugin.py 2012-10-16 13:53:20 +0000 | |||
340 | +++ compizconfig/compizconfig-python/tests/test_plugin.py 2018-09-05 09:24:50 +0000 | |||
341 | @@ -4,17 +4,17 @@ | |||
342 | 4 | class CompizConfigTestPlugin (compiz_config_test.CompizConfigTest): | 4 | class CompizConfigTestPlugin (compiz_config_test.CompizConfigTest): |
343 | 5 | 5 | ||
344 | 6 | def runTest (self): | 6 | def runTest (self): |
347 | 7 | plugin = self.ccs.Plugin (self.context, "mock") | 7 | plugin = self.ccs.Plugin (self.context, "mock") |
348 | 8 | plugin.Update () | 8 | plugin.Update () |
349 | 9 | 9 | ||
358 | 10 | self.assertEqual (plugin.Context, self.context) | 10 | self.assertEqual (plugin.Context, self.context) |
359 | 11 | self.assertTrue ("A Mock Group" in plugin.Groups) | 11 | self.assertTrue ("A Mock Group" in plugin.Groups) |
360 | 12 | self.assertTrue (plugin.Screen is not None) | 12 | self.assertTrue (plugin.Screen is not None) |
361 | 13 | self.assertEqual (plugin.Name, "mock") | 13 | self.assertEqual (plugin.Name, "mock") |
362 | 14 | self.assertEqual (plugin.ShortDesc, "Mock") | 14 | self.assertEqual (plugin.ShortDesc, "Mock") |
363 | 15 | self.assertEqual (plugin.LongDesc, "Mock plugin") | 15 | self.assertEqual (plugin.LongDesc, "Mock plugin") |
364 | 16 | self.assertEqual (plugin.Category, "Mocks") | 16 | self.assertEqual (plugin.Category, "Mocks") |
365 | 17 | self.assertEqual (plugin.Features, ["mocking"]) | 17 | self.assertEqual (plugin.Features, ["mocking"]) |
366 | 18 | 18 | ||
367 | 19 | if __name__ == '__main__': | 19 | if __name__ == '__main__': |
368 | 20 | unittest.main() | 20 | unittest.main() |
369 | 21 | 21 | ||
370 | === modified file 'compizconfig/compizconfig-python/tests/test_setting.py' | |||
371 | --- compizconfig/compizconfig-python/tests/test_setting.py 2012-10-16 13:53:20 +0000 | |||
372 | +++ compizconfig/compizconfig-python/tests/test_setting.py 2018-09-05 09:24:50 +0000 | |||
373 | @@ -5,21 +5,21 @@ | |||
374 | 5 | 5 | ||
375 | 6 | def runTest (self): | 6 | def runTest (self): |
376 | 7 | 7 | ||
379 | 8 | plugin = self.context.Plugins["mock"] | 8 | plugin = self.context.Plugins["mock"] |
380 | 9 | setting = self.ccs.Setting (plugin, "mock") | 9 | setting = self.ccs.Setting (plugin, "mock") |
381 | 10 | 10 | ||
394 | 11 | self.assertEqual (setting.Plugin, plugin) | 11 | self.assertEqual (setting.Plugin, plugin) |
395 | 12 | self.assertEqual (setting.Name, "mock") | 12 | self.assertEqual (setting.Name, "mock") |
396 | 13 | self.assertEqual (setting.ShortDesc, "Mock Setting") | 13 | self.assertEqual (setting.ShortDesc, "Mock Setting") |
397 | 14 | self.assertEqual (setting.LongDesc, "A Mock Setting") | 14 | self.assertEqual (setting.LongDesc, "A Mock Setting") |
398 | 15 | self.assertEqual (setting.Group, "A Mock Group") | 15 | self.assertEqual (setting.Group, "A Mock Group") |
399 | 16 | self.assertEqual (setting.SubGroup, "A Mock Subgroup") | 16 | self.assertEqual (setting.SubGroup, "A Mock Subgroup") |
400 | 17 | self.assertEqual (setting.Type, "String") | 17 | self.assertEqual (setting.Type, "String") |
401 | 18 | self.assertEqual (setting.Hints, []) | 18 | self.assertEqual (setting.Hints, []) |
402 | 19 | self.assertEqual (setting.DefaultValue, "Mock Value") | 19 | self.assertEqual (setting.DefaultValue, "Mock Value") |
403 | 20 | self.assertEqual (setting.Value, "Mock Value") | 20 | self.assertEqual (setting.Value, "Mock Value") |
404 | 21 | self.assertEqual (setting.Integrated, False) | 21 | self.assertEqual (setting.Integrated, False) |
405 | 22 | self.assertEqual (setting.ReadOnly, False) | 22 | self.assertEqual (setting.ReadOnly, False) |
406 | 23 | 23 | ||
407 | 24 | if __name__ == '__main__': | 24 | if __name__ == '__main__': |
408 | 25 | unittest.main() | 25 | unittest.main() |
409 | 26 | 26 | ||
410 | === modified file 'debian/compizconfig-settings-manager.install' | |||
411 | --- debian/compizconfig-settings-manager.install 2012-06-19 11:22:48 +0000 | |||
412 | +++ debian/compizconfig-settings-manager.install 2018-09-05 09:24:50 +0000 | |||
413 | @@ -2,6 +2,5 @@ | |||
414 | 2 | debian/tmp/usr/share/applications/ccsm.desktop | 2 | debian/tmp/usr/share/applications/ccsm.desktop |
415 | 3 | debian/tmp/usr/share/icons/hicolor/*/apps/ccsm.* | 3 | debian/tmp/usr/share/icons/hicolor/*/apps/ccsm.* |
416 | 4 | debian/tmp/usr/lib/python*/*/ccm* | 4 | debian/tmp/usr/lib/python*/*/ccm* |
418 | 5 | debian/tmp/usr/lib/python2.7/dist-packages/ccsm* | 5 | debian/tmp/usr/lib/*/dist-packages/ccsm* |
419 | 6 | debian/tmp/usr/share/ccsm | 6 | debian/tmp/usr/share/ccsm |
420 | 7 | |||
421 | 8 | 7 | ||
422 | === modified file 'debian/control' | |||
423 | --- debian/control 2018-07-24 10:32:11 +0000 | |||
424 | +++ debian/control 2018-09-05 09:24:50 +0000 | |||
425 | @@ -7,6 +7,7 @@ | |||
426 | 7 | Build-Depends: cmake (>= 2.8.12), | 7 | Build-Depends: cmake (>= 2.8.12), |
427 | 8 | debhelper (>= 9~), | 8 | debhelper (>= 9~), |
428 | 9 | dh-migrations, | 9 | dh-migrations, |
429 | 10 | dh-python, | ||
430 | 10 | dh-translations, | 11 | dh-translations, |
431 | 11 | googletest (>= 1.8.0), | 12 | googletest (>= 1.8.0), |
432 | 12 | intltool, | 13 | intltool, |
433 | @@ -52,12 +53,11 @@ | |||
434 | 52 | libx11-xcb-dev, | 53 | libx11-xcb-dev, |
435 | 53 | libprotobuf-dev, | 54 | libprotobuf-dev, |
436 | 54 | protobuf-compiler, | 55 | protobuf-compiler, |
439 | 55 | python-all-dev, | 56 | python3-all-dev, |
440 | 56 | cython, | 57 | cython3, |
441 | 57 | gsettings-desktop-schemas-dev, | 58 | gsettings-desktop-schemas-dev, |
442 | 58 | xserver-xorg-dev (>= 0.7.0), | 59 | xserver-xorg-dev (>= 0.7.0), |
443 | 59 | Standards-Version: 3.9.8 | 60 | Standards-Version: 3.9.8 |
444 | 60 | X-Python-Version: >= 2.7 | ||
445 | 61 | # If you aren't a member of ~compiz-team but need to upload packaging changes, | 61 | # If you aren't a member of ~compiz-team but need to upload packaging changes, |
446 | 62 | # just go ahead. ~compiz-team will notice and sync up the code again. | 62 | # just go ahead. ~compiz-team will notice and sync up the code again. |
447 | 63 | Vcs-Bzr: https://code.launchpad.net/~compiz-team/compiz/0.9.10 | 63 | Vcs-Bzr: https://code.launchpad.net/~compiz-team/compiz/0.9.10 |
448 | @@ -148,7 +148,7 @@ | |||
449 | 148 | Pre-Depends: ${misc:Pre-Depends} | 148 | Pre-Depends: ${misc:Pre-Depends} |
450 | 149 | Depends: ${shlibs:Depends}, | 149 | Depends: ${shlibs:Depends}, |
451 | 150 | ${misc:Depends}, | 150 | ${misc:Depends}, |
453 | 151 | ${python:Depends}, | 151 | ${python3:Depends}, |
454 | 152 | compiz-plugins-default (= ${binary:Version}), | 152 | compiz-plugins-default (= ${binary:Version}), |
455 | 153 | gsettings-desktop-schemas, | 153 | gsettings-desktop-schemas, |
456 | 154 | gnome-settings-daemon-schemas (>= 3.4.2-0ubuntu9), | 154 | gnome-settings-daemon-schemas (>= 3.4.2-0ubuntu9), |
457 | @@ -172,10 +172,10 @@ | |||
458 | 172 | Pre-Depends: ${misc:Pre-Depends} | 172 | Pre-Depends: ${misc:Pre-Depends} |
459 | 173 | Depends: ${shlibs:Depends}, | 173 | Depends: ${shlibs:Depends}, |
460 | 174 | ${misc:Depends}, | 174 | ${misc:Depends}, |
462 | 175 | ${python:Depends}, | 175 | ${python3:Depends}, |
463 | 176 | compiz-gnome, | 176 | compiz-gnome, |
464 | 177 | mate-settings-daemon, | 177 | mate-settings-daemon, |
466 | 178 | python | 178 | python3 |
467 | 179 | Recommends: ubuntu-mate-wallpapers-common, | 179 | Recommends: ubuntu-mate-wallpapers-common, |
468 | 180 | Description: OpenGL window and compositing manager - MATE integration | 180 | Description: OpenGL window and compositing manager - MATE integration |
469 | 181 | Compiz brings to life a variety of visual effects that make the Linux desktop | 181 | Compiz brings to life a variety of visual effects that make the Linux desktop |
470 | @@ -289,13 +289,13 @@ | |||
471 | 289 | This package contains the headers and development files needed to | 289 | This package contains the headers and development files needed to |
472 | 290 | build plugins with settings support. | 290 | build plugins with settings support. |
473 | 291 | 291 | ||
475 | 292 | Package: python-compizconfig | 292 | Package: python3-compizconfig |
476 | 293 | Architecture: any | 293 | Architecture: any |
477 | 294 | Multi-Arch: same | 294 | Multi-Arch: same |
478 | 295 | Section: python | 295 | Section: python |
479 | 296 | Pre-Depends: ${misc:Pre-Depends} | 296 | Pre-Depends: ${misc:Pre-Depends} |
482 | 297 | Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} | 297 | Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} |
483 | 298 | Provides: ${python:Provides} | 298 | Provides: ${python3:Provides} |
484 | 299 | Description: Compizconfig bindings for Python | 299 | Description: Compizconfig bindings for Python |
485 | 300 | Compiz Fusion is the result of the re-unification of the Beryl-project | 300 | Compiz Fusion is the result of the re-unification of the Beryl-project |
486 | 301 | and the community around the Compiz Window Manager. It seeks to provide | 301 | and the community around the Compiz Window Manager. It seeks to provide |
487 | @@ -308,17 +308,17 @@ | |||
488 | 308 | Package: compizconfig-settings-manager | 308 | Package: compizconfig-settings-manager |
489 | 309 | Architecture: all | 309 | Architecture: all |
490 | 310 | Multi-Arch: allowed | 310 | Multi-Arch: allowed |
492 | 311 | XB-Python-Version: ${python:Versions} | 311 | XB-Python3-Version: ${python3:Versions} |
493 | 312 | Pre-Depends: ${misc:Pre-Depends} | 312 | Pre-Depends: ${misc:Pre-Depends} |
494 | 313 | Depends: ${shlibs:Depends}, | 313 | Depends: ${shlibs:Depends}, |
495 | 314 | ${misc:Depends}, | 314 | ${misc:Depends}, |
497 | 315 | ${python:Depends}, | 315 | ${python3:Depends}, |
498 | 316 | gir1.2-gdkpixbuf-2.0, | 316 | gir1.2-gdkpixbuf-2.0, |
499 | 317 | gir1.2-gtk-3.0, | 317 | gir1.2-gtk-3.0, |
500 | 318 | gir1.2-pango-1.0, | 318 | gir1.2-pango-1.0, |
504 | 319 | python-compizconfig (>= ${source:Version}), | 319 | python3-compizconfig (>= ${source:Version}), |
505 | 320 | python-gi, | 320 | python3-gi, |
506 | 321 | python-gi-cairo, | 321 | python3-gi-cairo, |
507 | 322 | Recommends: compiz-plugins-default | 322 | Recommends: compiz-plugins-default |
508 | 323 | Description: Compiz configuration settings manager | 323 | Description: Compiz configuration settings manager |
509 | 324 | The OpenCompositing Project brings 3D desktop visual effects that improve | 324 | The OpenCompositing Project brings 3D desktop visual effects that improve |
510 | 325 | 325 | ||
511 | === removed file 'debian/python-compizconfig.install' | |||
512 | --- debian/python-compizconfig.install 2014-11-25 19:25:20 +0000 | |||
513 | +++ debian/python-compizconfig.install 1970-01-01 00:00:00 +0000 | |||
514 | @@ -1,3 +0,0 @@ | |||
515 | 1 | usr/lib/*/*/compizconfig.*.so | ||
516 | 2 | usr/lib/*/pkgconfig/compizconfig-python.pc | ||
517 | 3 | usr/lib/*/dist-packages/compizconfig_python* | ||
518 | 4 | 0 | ||
519 | === removed file 'debian/python-compizconfig.lintian-overrides' | |||
520 | --- debian/python-compizconfig.lintian-overrides 2012-06-19 11:22:48 +0000 | |||
521 | +++ debian/python-compizconfig.lintian-overrides 1970-01-01 00:00:00 +0000 | |||
522 | @@ -1,1 +0,0 @@ | |||
523 | 1 | python-compizconfig: binary-or-shlib-defines-rpath | ||
524 | 2 | 0 | ||
525 | === added file 'debian/python3-compizconfig.install' | |||
526 | --- debian/python3-compizconfig.install 1970-01-01 00:00:00 +0000 | |||
527 | +++ debian/python3-compizconfig.install 2018-09-05 09:24:50 +0000 | |||
528 | @@ -0,0 +1,2 @@ | |||
529 | 1 | usr/lib/*/*/compizconfig.so | ||
530 | 2 | usr/lib/*/dist-packages/compizconfig_python* | ||
531 | 0 | 3 | ||
532 | === modified file 'debian/rules' | |||
533 | --- debian/rules 2018-08-28 09:03:07 +0000 | |||
534 | +++ debian/rules 2018-09-05 09:24:50 +0000 | |||
535 | @@ -5,7 +5,6 @@ | |||
536 | 5 | 5 | ||
537 | 6 | include /usr/share/dpkg/architecture.mk | 6 | include /usr/share/dpkg/architecture.mk |
538 | 7 | 7 | ||
539 | 8 | python2_version := $(shell pyversions --requested --version debian/control) | ||
540 | 9 | gles2_architectures := armel armhf | 8 | gles2_architectures := armel armhf |
541 | 10 | build_testing := OFF | 9 | build_testing := OFF |
542 | 11 | 10 | ||
543 | @@ -59,11 +58,6 @@ | |||
544 | 59 | # work around having a file with a conflicted special name (#1156294) | 58 | # work around having a file with a conflicted special name (#1156294) |
545 | 60 | cp debian/compizconfig debian/tmp/config | 59 | cp debian/compizconfig debian/tmp/config |
546 | 61 | 60 | ||
547 | 62 | # accommodate Python's just-gotta-be-different approach to multi-arch | ||
548 | 63 | python2_dir=debian/tmp/usr/lib/python$(python2_version)/dist-packages; \ | ||
549 | 64 | mv $${python2_dir}/compizconfig.so \ | ||
550 | 65 | $${python2_dir}/compizconfig.$(DEB_HOST_MULTIARCH).so | ||
551 | 66 | |||
552 | 67 | dh_install --fail-missing | 61 | dh_install --fail-missing |
553 | 68 | 62 | ||
554 | 69 | # remove the compizconfig dev file from compiz-dev | 63 | # remove the compizconfig dev file from compiz-dev |
555 | @@ -76,5 +70,5 @@ | |||
556 | 76 | dh_auto_test --no-parallel | 70 | dh_auto_test --no-parallel |
557 | 77 | 71 | ||
558 | 78 | %: | 72 | %: |
560 | 79 | dh $@ --parallel --with python2,migrations,translations | 73 | dh $@ --parallel --with python3,migrations,translations |
561 | 80 | 74 |
The code changes look good to me.
Wuth regards to debian packaging, I have not tested it yet but added some comments anyway.