python2: Fix on non-Linux

The location of this 'regen' script (whatever is does) depends on the
platform. AFAICT it always exists due to this:

$(srcdir)/Lib/$(PLATDIR):
        mkdir $(srcdir)/Lib/$(PLATDIR)
        cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
This commit is contained in:
Tuomas Tynkkynen 2016-02-03 00:51:08 +02:00 committed by Dan Peebles
parent 78e62da7f1
commit 34922a3951

View File

@ -143,7 +143,7 @@ let
${optionalString includeModules "$out/bin/python ./setup.py build_ext"}
${optionalString stdenv.isLinux ''rm "$out"/lib/python*/plat-linux2/regen # refers to glibc.dev''}
rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev
'';
passthru = rec {