#6764 debian: python modules should be installed under dist-packages
Closed: fixed 7 years ago Opened 7 years ago by tjaalton.

Debian python policy dictates that python modules should be installed under dist-packages/, not site-packages/. The Debian packaging has carried a patch for it, and while the new build system on git master makes it much simpler, it's still needed to add '--install-layout=deb' for install.

Configure does detect pythondir correctly, and as a result it puts 'install_files.txt' under dist-packages/ (which is later removed by packaging just like on specfile).


Distutils in debian/ubuntu has been patched to DTRT, but I guess it's not used like on "plain" python projects.
https://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tools.html

master:

  • b280c7b Add PYTHON_INSTALL_EXTRA_OPTIONS and --install-layout=deb

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue set to the milestone: FreeIPA 4.5
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata