pypyPackages.pil: fix build
This commit is contained in:
parent
f99ad6fe94
commit
ee27bd1d99
@ -5785,9 +5785,10 @@ rec {
|
|||||||
buildInputs = [ python pkgs.libjpeg pkgs.zlib pkgs.freetype ];
|
buildInputs = [ python pkgs.libjpeg pkgs.zlib pkgs.freetype ];
|
||||||
|
|
||||||
disabled = isPy3k;
|
disabled = isPy3k;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
postInstall = "ln -s $out/lib/${python.libPrefix}/site-packages $out/lib/${python.libPrefix}/site-packages/PIL";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i "setup.py" \
|
sed -i "setup.py" \
|
||||||
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
|
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
|
||||||
@ -5798,11 +5799,6 @@ rec {
|
|||||||
checkPhase = "${python}/bin/${python.executable} selftest.py";
|
checkPhase = "${python}/bin/${python.executable} selftest.py";
|
||||||
buildPhase = "${python}/bin/${python.executable} setup.py build_ext -i";
|
buildPhase = "${python}/bin/${python.executable} setup.py build_ext -i";
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
cd "$out"/lib/python*/site-packages
|
|
||||||
ln -s $PWD PIL
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.pythonware.com/products/pil/;
|
homepage = http://www.pythonware.com/products/pil/;
|
||||||
description = "The Python Imaging Library (PIL)";
|
description = "The Python Imaging Library (PIL)";
|
||||||
|
Loading…
Reference in New Issue
Block a user