* python/ltihooks.py: Remove.
* python/Makefile.am (python_PYTHON): Remove ltihooks.py.
* python/swilena.py: No longer import `ltihooks'.
* run.in: Help Python find actual dynamic modules in directory
`.libs', as suggested by Alexandre Duret-Lutz in
http://stackoverflow.com/a/5125879/1551751.
---
swilena/ChangeLog | 11 ++++++++
swilena/python/Makefile.am | 6 +---
swilena/python/ltihooks.py | 60 --------------------------------------------
swilena/python/swilena.py | 4 +--
swilena/run.in | 46 +++++++++++++++++----------------
5 files changed, 38 insertions(+), 89 deletions(-)
delete mode 100644 swilena/python/ltihooks.py
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index 80a0029..b4be5ef 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,3 +1,14 @@
+2012-07-27 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Get rid of `ltihooks' in Swilena.
+
+ * python/ltihooks.py: Remove.
+ * python/Makefile.am (python_PYTHON): Remove ltihooks.py.
+ * python/swilena.py: No longer import `ltihooks'.
+ * run.in: Help Python find actual dynamic modules in directory
+ `.libs', as suggested by Alexandre Duret-Lutz in
+ http://stackoverflow.com/a/5125879/1551751.
+
2010-12-03 Roland Levillain <roland(a)lrde.epita.fr>
Perform install tests in Swilena.
diff --git a/swilena/python/Makefile.am b/swilena/python/Makefile.am
index 3227886..4865755 100644
--- a/swilena/python/Makefile.am
+++ b/swilena/python/Makefile.am
@@ -1,4 +1,4 @@
-# Copyright (C) 2008, 2009, 2010 EPITA Research and Development
+# Copyright (C) 2008, 2009, 2010, 2012 EPITA Research and Development
# Laboratory (LRDE).
#
# This file is part of Olena.
@@ -53,10 +53,8 @@ edit = sed \
-e 's|@PYTHON[@]|$(PYTHON)|g'
-# ltihooks.py: Python import hooks that understand Libtool libraries.
-python_PYTHON = ltihooks.py
# swilena.py: The whole Swilena suite.
-python_PYTHON += swilena.py
+python_PYTHON = swilena.py
# data.py: Access to the data of the distribution (images, meshes,
# etc.).
diff --git a/swilena/python/ltihooks.py b/swilena/python/ltihooks.py
deleted file mode 100644
index 7086365..0000000
--- a/swilena/python/ltihooks.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# -*- Mode: Python; py-indent-offset: 4 -*-
-# ltihooks.py: python import hooks that understand libtool libraries.
-# Copyright (C) 2000 James Henstridge.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-import os, ihooks
-
-class LibtoolHooks(ihooks.Hooks):
- def get_suffixes(self):
- """Like normal get_suffixes, but adds .la suffixes to list"""
- ret = ihooks.Hooks.get_suffixes(self)
- ret.insert(0, ('module.la', 'rb', 3))
- ret.insert(0, ('.la', 'rb', 3))
- return ret
-
- def load_dynamic(self, name, filename, file=None):
- """Like normal load_dynamic, but treat .la files specially"""
- if len(filename) > 3 and filename[-3:] == '.la':
- fp = open(filename, 'r')
- dlname = ''
- installed = 1
- line = fp.readline()
- while line:
- if len(line) > 7 and line[:7] == 'dlname=':
- dlname = line[8:-2]
- elif len(line) > 10 and line[:10] == 'installed=':
- installed = line[10:-1] == 'yes'
- line = fp.readline()
- fp.close()
- if dlname:
- if installed:
- filename = os.path.join(os.path.dirname(filename),
- dlname)
- else:
- filename = os.path.join(os.path.dirname(filename),
- '.libs', dlname)
- return ihooks.Hooks.load_dynamic(self, name, filename, file)
-
-importer = ihooks.ModuleImporter()
-importer.set_hooks(LibtoolHooks())
-
-def install():
- importer.install()
-def uninstall():
- importer.uninstall()
-
-install()
diff --git a/swilena/python/swilena.py b/swilena/python/swilena.py
index 6538046..c3ac63e 100644
--- a/swilena/python/swilena.py
+++ b/swilena/python/swilena.py
@@ -1,6 +1,6 @@
#! /usr/bin/env python
-# Copyright (C) 2008, 2009, 2010 EPITA Research and Development
+# Copyright (C) 2008, 2009, 2010, 2012 EPITA Research and Development
# Laboratory (LRDE)
#
# This file is part of Olena.
@@ -20,8 +20,6 @@
# \file swilena.py
# \brief The whole Swilena suite.
-import ltihooks
-
import config
from complex2 import *
diff --git a/swilena/run.in b/swilena/run.in
index 2f01b29..0a76964 100755
--- a/swilena/run.in
+++ b/swilena/run.in
@@ -1,7 +1,8 @@
-#!/bin/sh
-# Copyright (C) 2003, 2004, 2006 Laboratoire d'Informatique de Paris 6
-# (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
-# Pierre et Marie Curie.
+#! /bin/sh
+
+# Copyright (C) 2003, 2004, 2006, 2012 Laboratoire d'Informatique de
+# Paris 6 (LIP6), département Systèmes Répartis Coopératifs (SRC),
+# Université Pierre et Marie Curie.
#
# This file is part of Spot, a model checking library.
#
@@ -30,28 +31,29 @@ test -n "$srcdir" && test -z "$VERBOSE" && exec >/dev/null 2>&1
# path of dependent libraries in each library).
modpath='.libs:@abs_top_builddir@/src/.libs'
+# `@abs_builddir@/python' and `@abs_srcdir@/python' are for the *.py
+# files, and `@abs_builddir@/python/.libs' for the *.so files. We
+# used to rely on a module called `ltihooks' to teach the `import'
+# statement how to load a Libtool library, but it started to cause
+# issues with Python 2.6.
+pypath='@abs_builddir@/python:@abs_builddir@/python/.libs:@abs_srcdir@/python':"$PYTHONPATH"
+
+# Likewise for Ruby: as some of our SWIG interfaces import other SWIG
+# interfaces (with the `%import' keyword), we must add the `.libs'
+# directory to SWILENA_RUBY_PATH so that the Ruby interpreter can load
+# the corresponding dynamic module(s) (SWIG's `%import' statements
+# generate code in dynamic modules that bypass Ruby's `Kernel.require'
+# mechanism).
+rbpath='@abs_builddir@/ruby:@abs_builddir@/ruby/.libs:@abs_srcdir@/ruby'
+
case $1 in
- '' | *.py)
- PYTHONPATH='@abs_builddir@/python:@abs_srcdir@/python':"$PYTHONPATH" \
- DYLD_LIBRARY_PATH=$modpath \
- exec @PYTHON@ "$@"
- ;;
- # What's the point in adding `.libs' to SWILENA_RUBY_PATH?
- #
- # As some of our SWIG interfaces import other SWIG interfaces
- # (with the `%import' keyword), we must add the `.libs' directory
- # to SWILENA_RUBY_PATH so that the Ruby interpreter can load the
- # corresponding dynamic module(s) (SWIG's `%import' statements
- # generate code in dynamic modules that bypass Ruby's
- # `Kernel.require' mechanism).
+ *.py)
+ PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath exec @PYTHON@ "$@";;
*.rb)
- SWILENA_RUBY_PATH='@abs_builddir@/ruby:@abs_srcdir@/ruby:.libs' \
- DYLD_LIBRARY_PATH=$modpath \
- exec @RUBY@ "$@"
- ;;
+ SWILENA_RUBY_PATH=$rbpath DYLD_LIBRARY_PATH=$modpath exec @RUBY@ "$@";;
*.test)
exec sh -x "$@";;
*)
- echo "Unknown extension" 2>&1
+ echo "Unknown extension" >&2
exit 2;;
esac
--
1.7.2.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch swilena has been updated
via e75f830f215145068b6753ed0f809e9975c12431 (commit)
via 7c4b3700685e917721d64487afaf1437345e98a3 (commit)
via 074a32caf66072e3bc7941f32c81a6a7448b8832 (commit)
via e44582470d67b77f69663246eb94f2095414ff40 (commit)
via 43b5af6791708f0ef192f35b25e2561139a3b2a0 (commit)
via 7a95539131edbe6012cd1a2862ef88f8e67c2f66 (commit)
from 601ff8ea39d440417c772e78b814fd2572ff918a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
e75f830 Aesthetic changes in Swilena.
7c4b370 Add sps-gdb-local, a script to run the Swilena Python Shell in GDB.
074a32c Fix build dependencies in Swilena.
e445824 Comment on an issue of Swilena highlighted by max-tree.py.
43b5af6 Update the local (build-time) Swilena Python Shell.
7a95539 Get rid of `ltihooks' in Swilena.
-----------------------------------------------------------------------
Summary of changes:
swilena/ChangeLog | 51 +++++++++++++++++++++++++++++++++
swilena/box.ixx | 2 +-
swilena/box2d.i | 4 +-
swilena/image2d.ixx | 5 ++-
swilena/image2d_point2d.i | 2 +-
swilena/morpho.ixx | 5 ++-
swilena/python/Makefile.am | 19 ++++++------
swilena/python/ltihooks.py | 60 ---------------------------------------
swilena/python/max-tree.py | 14 ++++++++-
swilena/python/sps-gdb-local.in | 6 ++++
swilena/python/sps-local.in | 2 +-
swilena/python/swilena.py | 4 +--
swilena/run.in | 46 +++++++++++++++--------------
13 files changed, 116 insertions(+), 104 deletions(-)
delete mode 100644 swilena/python/ltihooks.py
create mode 100644 swilena/python/sps-gdb-local.in
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
via b654f0d48265b56eda78f0df27cb1a414f7f7e5a (commit)
via e33727052ccf1d6c683cd2492d060ded7fccd7f4 (commit)
via d590e49dcb0541a2f964fbbc10032fa3ffcc260b (commit)
via 4649bd3bb8ff982893c774075f03d937fe3d995b (commit)
via 7cbb3cb04ebbf5b76672a8733629fce9a8cb591b (commit)
via 5a934f2c1678ae9bce79836ef2a11f6005e69b7b (commit)
via e32d709852606cfc30d2bb673b1fa6042e2b0185 (commit)
via 14bf21225e9519b342dbc7eea62ce761f1523d4e (commit)
via 75d065e29b6a317d9d4c78ba8d35a214639bb02c (commit)
from 39e1152eceddabf1c61e368c2f7bd477dbc2c46e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
b654f0d Merge branch 'apps-ismm-2009' into next
e337270 milena/ChangeLog: Wrap long lines.
-----------------------------------------------------------------------
Summary of changes:
milena/ChangeLog | 85 +-
milena/apps/papers/levillain.09.ismm/Makefile.am | 28 +-
.../papers/levillain.09.ismm/classif-1complex.cc | 307 +
.../apps/papers/levillain.09.ismm/classif-graph.cc | 287 +
.../apps/papers/levillain.09.ismm/classseedsi.pbm | 6415 ++++++++++++++++++++
milena/apps/papers/levillain.09.ismm/graph.cc | 259 +-
.../papers/levillain.09.ismm/influence_zones.hh} | 90 +-
milena/apps/papers/levillain.09.ismm/io.hh | 242 +
8 files changed, 7411 insertions(+), 302 deletions(-)
create mode 100644 milena/apps/papers/levillain.09.ismm/classif-1complex.cc
create mode 100644 milena/apps/papers/levillain.09.ismm/classif-graph.cc
create mode 100644 milena/apps/papers/levillain.09.ismm/classseedsi.pbm
copy milena/{mln/literal/one.hh => apps/papers/levillain.09.ismm/influence_zones.hh} (55%)
create mode 100644 milena/apps/papers/levillain.09.ismm/io.hh
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch papers/lazzara.12.ijdar has been updated
via f7985a1b13b6492cf8bbbb80ac88fdb3da625005 (commit)
via ea5d166701036d0d1e122207eba99e12a0d4bd19 (commit)
from 9a4c370d70d77e55335f0edd439ba05ed1b48cc2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
f7985a1 scribo/binarization/sauvola_ms.hh: Add comments.
ea5d166 Use io::magick for sauvola binaries output.
-----------------------------------------------------------------------
Summary of changes:
scribo/ChangeLog | 11 +++++++++++
scribo/scribo/binarization/sauvola_ms.hh | 15 +++++++++++++++
scribo/src/binarization/sauvola.cc | 6 +++---
scribo/src/binarization/sauvola_ms.cc | 6 +++---
4 files changed, 32 insertions(+), 6 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
discards 28adecba2ea2583a997d208c14798544ca4209d7 (commit)
This update discarded existing revisions and left the branch pointing at
a previous point in the repository history.
* -- * -- N (39e1152eceddabf1c61e368c2f7bd477dbc2c46e)
\
O -- O -- O (28adecba2ea2583a997d208c14798544ca4209d7)
The removed revisions are not necessarilly gone - if another reference
still refers to them they will stay in the repository.
No new revisions were added by this update.
Summary of changes:
milena/ChangeLog | 7 -------
milena/mln/io/pnm/load.hh | 43 ++++---------------------------------------
2 files changed, 4 insertions(+), 46 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform