[Nix-dev] pygobject

Shea Levy shea at shealevy.com
Fri Sep 2 21:59:24 CEST 2016


Applied, thanks!

Karn Kallio <tierpluspluslists at skami.org> writes:

> In the pygobject package of pythonPackages the codegen python files are
> executable and get wrapped, which causes pygtk to not build because it
> uses the python program to execute them.  The attached patch makes them
> not executable so they do not get wrapped and cause pygtk to fail its
> build.
> From 931b7998658fa72323c9a76e7b336fe726a9cc61 Mon Sep 17 00:00:00 2001
> From: Karn Kallio <kkallio at skami.org>
> Date: Fri, 2 Sep 2016 15:30:42 -0400
> Subject: [PATCH] pygobject: prevent wrapping of codegen/*.py files.
>
> ---
>  pkgs/development/python-modules/pygobject/default.nix | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/pkgs/development/python-modules/pygobject/default.nix b/pkgs/development/python-modules/pygobject/default.nix
> index 5c9367a..7f2bd63 100644
> --- a/pkgs/development/python-modules/pygobject/default.nix
> +++ b/pkgs/development/python-modules/pygobject/default.nix
> @@ -26,6 +26,10 @@ mkPythonDerivation rec {
>    # effect, but we leave it in case somebody expects and calls it.
>    postInstall = ''
>      mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
> +
> +    # Prevent wrapping of codegen files as these are meant to be
> +    # executed by the python program
> +    chmod a-x $out/share/pygobject/*/codegen/*.py
>    '';
>  
>    meta = {
> -- 
> 2.9.3
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160902/a70de757/attachment.sig>


More information about the nix-dev mailing list