about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-10-23 11:26:47 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2019-10-23 12:48:16 +0200
commite70c0170df4c8822825ed09feb53dacf22f0d14c (patch)
treec65fdd28cc9101cc6e8722d96daaf85fd0db3081
parent120b6b06dfa860ed2d4412396679a1f3559fa76b (diff)
downloadnixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar.gz
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar.bz2
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar.lz
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar.xz
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.tar.zst
nixlib-e70c0170df4c8822825ed09feb53dacf22f0d14c.zip
python.pkgs.twisted: move twisted cache generation to postFixup
The Python 2 build of twisted would fail when generating the cache. This
failure started occuring since the change was introduced that builds
setuptools as a wheel instead of as an egg,
90be4c2c7875c9487508d95b5c638d97e2903ada.

Turns out moving this step to postFixup solves the issue. I suppose it
is related to the order of site packages being evaluated, where
PYTHONPATH introduced additional ones.
-rw-r--r--pkgs/development/python-modules/twisted/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix
index 1c91dfc2b48f..3b2c393b35b3 100644
--- a/pkgs/development/python-modules/twisted/default.nix
+++ b/pkgs/development/python-modules/twisted/default.nix
@@ -41,7 +41,9 @@ buildPythonPackage rec {
   # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3
   # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for
   # details.
-  postInstall = "$out/bin/twistd --help > /dev/null";
+  postFixup = ''
+    $out/bin/twistd --help > /dev/null
+  '';
 
   checkPhase = ''
     ${python.interpreter} -m unittest discover -s twisted/test