Fix python path
This commit is contained in:
parent
917db3212f
commit
2dec65340b
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = with pythonPackages;
|
buildInputs = with pythonPackages;
|
||||||
[
|
[
|
||||||
python twisted urwid beautifulsoup wxPython distribute pygobject
|
python twisted urwid beautifulsoup wxPython distribute pygobject
|
||||||
wokkel pythonDBus pyfeed
|
wokkel pythonDBus pyfeed wrapPython
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
@ -27,6 +27,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
python setup.py install --prefix="$out"
|
python setup.py install --prefix="$out"
|
||||||
|
|
||||||
|
for i in "$out/bin"/*; do
|
||||||
|
head -n 1 "$i" | grep -E '[/ ]python( |$)' && {
|
||||||
|
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages"
|
||||||
|
} || true
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user