[gnome-tweak-tool] build: Actually install defs.py



commit e44f95bebd36c90fd9532989c03bea1d4798c6dd
Author: Colin Walters <walters verbum org>
Date:   Fri Nov 15 13:40:11 2013 -0500

    build: Actually install defs.py
    
    Otherwise we fail to set PKGDATADIR, which causes us to fail to load
    shell.css, which causes us to fail to start.
    
    The correct way to do this though, in my opinion, is to *not* pollute
    the global Python namespace with this application's internals.  We
    don't expect other Python programs to "import gtweak".
    
    The way gobject-introspection does this is to install the Python code
    to $(pkglibdir), and substitute in the wrapper script to add that to
    sys.path.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712398

 Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6e0f731..82d0ca6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,6 +7,8 @@ nobase_dist_app_PYTHON = \
        $(wildcard $(srcdir)/gtweak/*.py) \
        $(wildcard $(srcdir)/gtweak/tweaks/*.py)
 
+nobase_app_PYTHON = gtweak/defs.py
+
 EXTRA_DIST = \
        $(bin_SCRIPTS)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]