Commit 632a57a4 authored by Dmitry Blinov's avatar Dmitry Blinov Committed by Esteban Blanc

add curl rpath to python so that pycurl egg can link

An extremely ugly thing based on the fact that somehow rpaths
defined for python get propagated as runpaths for any eggs
including those that have explicit profiles.
Actually they override explicitly define rpaths making them useless
to define.
If it is possible to make pycurl link without this commit and/or eliminate
explicit rpaths being overwritten by propagation - it is better to do
this.
parent 00e182b7
......@@ -13,6 +13,7 @@ extends =
../zlib/buildout.cfg
../file/buildout.cfg
../xz-utils/buildout.cfg
../curl/buildout.cfg
parts =
python2.7
......@@ -67,8 +68,12 @@ post-install = cd '${:prefix}' &&
sed -n 's,:#! */usr/bin/env \+python2\?$,,p' |
xargs -d '\n' sed -i '1s,.*,#!${:executable},'
# THIS THING AFFECTS ALL OF THE EGGS REGARDLESS OF PROFILES!!!!
# THIS IS BAD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
extra-ldflags = -Wl,-rpath=${curl:location}/lib
# the entry "-Wl,-rpath=${file:location}/lib" below is needed by python-magic,
# which would otherwise load the system libmagic.so with ctypes
environment =
PATH=${patch:location}/bin:${xz-utils:location}/bin:%(PATH)s
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${libexpat:location}/include -I${libffi:location}/include -I${ncurses:location}/include -I${ncurses:location}/include/ncursesw -I${bzip2:location}/include -I${gdbm:location}/include -I${openssl:location}/include -I${sqlite3:location}/include -I${gettext:location}/include
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment