Univention Bugzilla – Bug 49140
Migrate base/univention-python to dh_python2
Last modified: 2019-10-29 08:47:54 CET
The package base/univention-python should be migrated to use dh_python instead of python-support. Migration-Guide: https://hutten.knut.univention.de/mediawiki/index.php/Python_DebHelper_Migration
@Daniel, feel free to take this bug, if you have time.
Migrated the univention package to dh_python2. New location of modules is /usr/lib/python2.7/dist-packages/univention/. Old modules+packages in the location /usr/lib/pymodules/python2.7/univention/, /usr/share/pyshared/univention/ are still supported via a namespace package. I found no hardcoded references to any of the python files. The services UMC, UDL, UDM-CLI, samba, heimdal work after/during the upgrade. The discussion was mainly done in Bug #49060. univention-python (12.0.0-3) e1db749da65f | Bug #49140: migrate univention-python to dh_python2 univention-python.yaml 3c21cd02bd4b | YAML Bug #49140
commit 4ea26a93337d5946f84b4399e22c051a743a15de Bug #49140: check for uldap.py existence test/scenarios/autotest-201-ucsschool-singleserver-s4-all-components.cfg | 3 ++-
The python3-univention package wasn't build with pybuild, instead the files were just copied with a debian install file. I fixed that by adding python3-all as a build dependency and removing the install file. I had to explicitly set the changelog encoding in setup.py because our pbuilder environment doesn't seem to be using an utf-8 locale and the python3 build failed with an encoding error... [4.4-0 1e9429fb24] Bug #49140: improve python3 build process [4.4-0 c39ca28339] Bug #49140: Fix changelog encoding [4.4-0 21ea1e370c] Bug #49140: yaml What I tested: Note: univention.ipcalc -> python-support univention.dns -> dh_python (from this package) Imported ipcalc first and dns afterwards -> both work -> OK Imported dns first and ipcalc afterwards -> both work -> OK Tests look good -> OK -> Verified
<http://errata.software-univention.de/ucs/4.4/78.html>