pypyPackages.pil: fix build
This commit is contained in:
parent
f99ad6fe94
commit
ee27bd1d99
@ -5785,8 +5785,9 @@ 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" \
|
||||||
@ -5795,13 +5796,8 @@ rec {
|
|||||||
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
|
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
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/;
|
||||||
|
Loading…
Reference in New Issue
Block a user