Skip to content

Commit

Permalink
pygobject
Browse files Browse the repository at this point in the history
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@skami.org>
Date: Fri, 2 Sep 2016 15:30:42 -0400
Subject: [PATCH] pygobject: prevent wrapping of codegen/*.py files.
  • Loading branch information
Karn Kallio authored and shlevy committed Sep 2, 2016
1 parent 67f2a00 commit ce3daae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/pygobject/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ce3daae

Please sign in to comment.