On 11/12/19 3:40 AM, Douglas R. Reno via blfs-dev wrote:
On 11/11/19 6:20 PM, Tim Tassonis via blfs-dev wrote:
Hi all
Has anybody tried to install latest pycairo with DESTDIR
While
python2 setup.py install --optimize=1 --root=$DESTDIR
works, both
python2 setup.py install_pycairo_header --root=$DESTDIR
python2 setup.py install_pkgconfig --root=$DESTDIR
fail, with
error: option --root not recognized
Is there a way to get these using $DESTDIR ?
Hi Tim,
I'm not sure on this one. I was the last one who did this upgrade, and I
had to comment those lines out to get a successful build. I found that
the pkg_config file and the header was installed automatically in a
DESTDIR installation though:
renodr [ /sources/pycairo-1.18.2 ]$ ls install/usr/lib/pkgconfig/
py3cairo.pc pycairo.pc
renodr [ /sources/pycairo-1.18.2 ]$ ls install/usr/include/pycairo/
py3cairo.h pycairo.h
However, due to the fact that installing normally results in a .egg file
being created and then extracted (from the way I understand it), a
normal install needs those commands. Can you try a destdir install and
see if those files exist in your DESTDIR?
Yes, they seem to get installed:
timtas@lfsd82:~$ lpm -C pycairo
/usr/share/pkgconfig/pycairo.pc
/usr/include/pycairo/pycairo.h
/usr/lib/python2.7/site-packages/cairo/py.typed
...
timtas@lfsd82:~$ lpm -C py3cairo
/usr/share/pkgconfig/py3cairo.pc
/usr/include/pycairo/py3cairo.h
/usr/lib/python3.8/site-packages/cairo/py.typed
...
So, it seems that
setup.py install_pycairo_header
setup.py install_pkgconfig
can safely be ommited for DESTDIR installs.
Thanks a lot for the clarification.
Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page