Mailinglist Archive: opensuse-packaging (121 mails)

< Previous Next >
[opensuse-packaging] Including python modules using .pth file
  • From: Chris Coutinho <chrisbcoutinho@xxxxxxxxx>
  • Date: Mon, 11 Mar 2019 15:47:51 +0100
  • Message-id: <>

There are some packages that include python modules/packages that are
not installable via Since they might not end up on the
normal python search path, python fails to find them and the build
looks 'broken'

For example, paraview (a package within the science project) installs
its shared libraries into its own /usr/lib64/paraview subdirectory.
The associated python3 packages get placed into
/usr/lib64/paraview/python3.x/site-packages/. Another project I
recently submitted places its python modules into
/usr/share/<package>/Python. Both of these cases end up with import
errors, and can be solved by fixing how the packages are installed.

Rather than moving the packages into the system site-packages
directory, I propose to simply throw a <package>.pth file into the
site directory for python 2 or 3 (or both if applicable) pointing to
the packages python modules.

Is there precedent regarding this issue?

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups