python2: Don't fail silently on module build.

A build output of such a failure can be found here:

http://hydra.nixos.org/build/21994789/nixlog/1/raw

The build_ext command doesn't return non-zero if it fails but instead
produces a file with a "_failed.so" suffix, which we're now checking
after the build_ext command.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-05-12 17:15:34 +02:00
parent 7640b92c30
commit 55e66db0fa
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961
2 changed files with 2 additions and 0 deletions

View file

@ -144,6 +144,7 @@ let
'self.extensions = [ext for ext in self.extensions if ext.name in ["${internalName}"]]'
python ./setup.py build_ext
[ -z "$(find build -name '*_failed.so' -print)" ]
'';
installPhase =

View file

@ -161,6 +161,7 @@ let
'self.extensions = [ext for ext in self.extensions if ext.name in ["${internalName}"]]'
python ./setup.py build_ext
[ -z "$(find build -name '*_failed.so' -print)" ]
'';
installPhase =