Skip to contentSkip to conversation

pylibmount and py3

DISCUSSION Karel Zak 1 participant 1 message Sep 20, 2013 Util-Linux package

lore
Share & tools
lore

Karel Zak

author maintainer Applied
#0 lore raw

Hi,

I have applied Ondrej's python3 support to pylibmount. It's possible to recompile the library with python2 as well as with python3.

The ./configure script by default follows distribution and looks for "python" pkg-config module, you can override the default and use

   --with-python=2  or  --with-python=3

then it looks for "python2" or "python3" pkg-config module.

Please, test it with your distribution.

Note that for example Fedora uses symlinks to redirect pkg-config from "python" to "python2" (the current Fedora default).

        /usr/lib64/pkgconfig/python-2.7.pc
        /usr/lib64/pkgconfig/python2.pc      -> python-2.7.pc
        /usr/lib64/pkgconfig/python-3.3m.pc  -> python-3.3.pc
        /usr/lib64/pkgconfig/python-3.3.pc
        /usr/lib64/pkgconfig/python3.pc      -> python-3.3.pc
        /usr/lib64/pkgconfig/python.pc       -> python2.pc


    Karel
Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com