git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit6ab609ca588254521be344a1522040e88e00f098 authorFrederik Rietdijk <fridh@fridh.nl> dateWed 23 Oct 2019, 11:26 (7 years ago) parentb8acb48
1 file changed+3−1
pkgs/development/python-modules/twisted/default.nix+3−1
pkgs/development/python-modules/twisted/default.nix+3−1
@@ -39,7 +39,9 @@ buildPythonPackage rec {
3939 # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3
4040 # and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for
4141 # details.
42− postInstall = "$out/bin/twistd --help > /dev/null";
42+ postFixup = ''
43+ $out/bin/twistd --help > /dev/null
44+ '';
4345
4446 checkPhase = ''
4547 ${python.interpreter} -m unittest discover -s twisted/test