* building pylibmount when python -> python3
@ 2013-08-26 12:47 Dave Reisner
2013-08-26 16:43 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Dave Reisner @ 2013-08-26 12:47 UTC (permalink / raw)
To: util-linux
This came up in IRC and I thought it might be a good idea to mention it
to the list. With pylibmount recently being merged into git, some folks
might have trouble building from HEAD if their /usr/bin/python points to
a version python>=3.0. While the end goal (after discussion with Karel)
seems to be that we should be able to build this for both python2 and
python3, you can work around the build failure for now by simply passing
--with-python=/usr/bin/python2 (or --without-python if you don't care
for the new module).
Cheers,
Dave
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: building pylibmount when python -> python3
2013-08-26 12:47 building pylibmount when python -> python3 Dave Reisner
@ 2013-08-26 16:43 ` Mike Frysinger
2013-08-26 16:52 ` Dave Reisner
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2013-08-26 16:43 UTC (permalink / raw)
To: Dave Reisner; +Cc: util-linux
[-- Attachment #1: Type: Text/Plain, Size: 1104 bytes --]
On Monday 26 August 2013 08:47:30 Dave Reisner wrote:
> This came up in IRC and I thought it might be a good idea to mention it
> to the list. With pylibmount recently being merged into git, some folks
> might have trouble building from HEAD if their /usr/bin/python points to
> a version python>=3.0. While the end goal (after discussion with Karel)
> seems to be that we should be able to build this for both python2 and
> python3, you can work around the build failure for now by simply passing
> --with-python=/usr/bin/python2 (or --without-python if you don't care
> for the new module).
that doesn't quite work due to logic in the configure script that rejects
anything other than "yes". fixing that doesn't help as AM_PATH_PYTHON only
respects $PYTHON. then you have to set it to the full path and not just
PYTHON=python2 because the configure script wants the full path (to run the
config script). it's all pretty fragile atm.
i think the workaround is:
$ PYTHON=/usr/bin/python2 ./configure
(or point it at python2.7 if your distro installs a fuller version)
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: building pylibmount when python -> python3
2013-08-26 16:43 ` Mike Frysinger
@ 2013-08-26 16:52 ` Dave Reisner
0 siblings, 0 replies; 3+ messages in thread
From: Dave Reisner @ 2013-08-26 16:52 UTC (permalink / raw)
To: Mike Frysinger; +Cc: util-linux
On Mon, Aug 26, 2013 at 12:43:51PM -0400, Mike Frysinger wrote:
> On Monday 26 August 2013 08:47:30 Dave Reisner wrote:
> > This came up in IRC and I thought it might be a good idea to mention it
> > to the list. With pylibmount recently being merged into git, some folks
> > might have trouble building from HEAD if their /usr/bin/python points to
> > a version python>=3.0. While the end goal (after discussion with Karel)
> > seems to be that we should be able to build this for both python2 and
> > python3, you can work around the build failure for now by simply passing
> > --with-python=/usr/bin/python2 (or --without-python if you don't care
> > for the new module).
>
> that doesn't quite work due to logic in the configure script that rejects
> anything other than "yes". fixing that doesn't help as AM_PATH_PYTHON only
> respects $PYTHON. then you have to set it to the full path and not just
> PYTHON=python2 because the configure script wants the full path (to run the
> config script). it's all pretty fragile atm.
>
> i think the workaround is:
> $ PYTHON=/usr/bin/python2 ./configure
> (or point it at python2.7 if your distro installs a fuller version)
> -mike
Oops. I guess I should have checked the built package afterwards. Thanks
for the correction.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-26 16:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 12:47 building pylibmount when python -> python3 Dave Reisner
2013-08-26 16:43 ` Mike Frysinger
2013-08-26 16:52 ` Dave Reisner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox