summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2009-05-02 16:11:06 +0300
committerPaul Pogonyshev <pogonyshev@gmx.net>2009-05-02 16:11:06 +0300
commitdd2009d4e0e9fa9cd4ee8d76ec0e498e62a568b7 (patch)
treed13f1db39e0b7a3026d9f8193aaf194e90665c8d /gtk
parent7a05b493a612da9f41a8f611ed56dcbcea7daa07 (diff)
downloadpygtk-dd2009d4e0e9fa9cd4ee8d76ec0e498e62a568b7.tar.gz
Remove 'ltihooks.py' as using deprecated Python module.
Remove the script and all related imports. All relevant Makefile's now create symbolic links for '.so' files from '.libs' to the level up, so that C helper modules are still importable in built, but not installed source tree. Same as in PyGObject. (Bug #565593.)
Diffstat (limited to 'gtk')
-rw-r--r--gtk/Makefile.am8
-rw-r--r--gtk/__init__.py15
2 files changed, 7 insertions, 16 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 20212202..b9ec8f39 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -195,7 +195,7 @@ CLEANFILES += \
gtkunixprint.c \
gtkunixprint.defs \
gtkunixprint-types.defs
-
+
EXTRA_DIST += \
$(GTKUNIXPRINT_DEFS) \
@@ -248,3 +248,9 @@ endif
gtk-types.c:
@:
+
+all: $(pygtkexec_LTLIBRARIES:.la=.so) $(pkgpyexec_LTLIBRARIES:.la=.so)
+clean-local:
+ rm -f $(pygtkexec_LTLIBRARIES:.la=.so) $(pkgpyexec_LTLIBRARIES:.la=.so)
+.la.so:
+ $(LN_S) .libs/$@ $@ || true
diff --git a/gtk/__init__.py b/gtk/__init__.py
index e2733dcc..92af8696 100644
--- a/gtk/__init__.py
+++ b/gtk/__init__.py
@@ -22,14 +22,6 @@
import sys
-# this can go when things are a little further along
-try:
- import ltihooks
- # pyflakes
- ltihooks
-except ImportError:
- ltihooks = None
-
# For broken embedded programs which forgot to call Sys_SetArgv
if not hasattr(sys, 'argv'):
sys.argv = []
@@ -49,13 +41,6 @@ else:
import gdk
-if ltihooks:
- try:
- ltihooks.uninstall()
- del ltihooks
- except:
- pass
-
from gtk._lazyutils import LazyNamespace, LazyModule
from gtk.deprecation import _Deprecated, _DeprecatedConstant