Python Library Cleanups

Fred Wright fw at fwright.net
Tue Sep 26 22:16:50 UTC 2017


On Tue, 26 Sep 2017, Eric S. Raymond wrote:
> Fred Wright via devel <devel at ntpsec.org>:
> > > Not Gentoo, the FHS.  And the package I am using is git head.
> >
> > The point is that the portable way to determine where to install the
> > libraries is to ask Python via the get_python_lib() function.  Whatever it
> > returns (as long as you don't supply the 'prefix' argument) is guaranteed
> > to be in its initial sys.path.  If that location is inappropriate, it's
> > the fault of whomever configured and built that Python.
>
> Does this means the FHS nonconformance isc an upstream bug?

Exactly.  And one that nobody bothered to complain about for GPSD.

BTW, I have a tool that lists a few things including the library paths for
every version of Python it can find on the system.  I can submit it to
devel/ if you like.

Fred Wright


More information about the devel mailing list