Deltarpm python3 build failure
Jonathan Dieter
jdieter at lesbg.com
Sat Jan 1 20:53:25 UTC 2011
On Sat, 2011-01-01 at 12:22 -0800, Toshio Kuratomi wrote:
> On Fri, Dec 31, 2010 at 05:38:30PM +0200, Jonathan Dieter wrote:
> > I now seem to be running into some problems building deltarpm for
> > Rawhide and it seems to be tied into this. See
> > http://koji.fedoraproject.org/koji/buildinfo?buildID=212117 for more
> > details.
>
> Which is happening because the module is being installed to
> %{_libdir}/python3.2mu/site-packages
>
> So, yes, the Makefiles need to be changed. The way they're detecting which
> versions of python to build for are a bit hacky and definitely broken in
> this instance.
>
> I would instead code something that uses the python interpreter or config
> scripts to tell what needs to be done.
>
> You can adapt code like this to your needs:
>
> for PY in python python3 ; do
> PYLIB=`$PY -c 'from distutils import sysconfig ; print(sysconfig.get_python_lib(1))'`
> PYVER=`$PY -c 'from distutils import sysconfig ; print(sysconfig.get_python_version)'`
> PYCFLAGS=`$PY-config --cflags`
> PYLDFLAGS=`$PY-config --ldflags`
> done
Thanks much. I had missed the fact that the file was being installed in
a different directory. This is a great help.
Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110101/a15c8655/attachment.bin
More information about the devel
mailing list