hack the lens package to use a local rclconfig.py until the updated python package is released

This commit is contained in:
Jean-Francois Dockes 2013-06-09 11:52:47 +02:00
parent 2b2cfdc33e
commit cfe2cfe56d
2 changed files with 14 additions and 2 deletions

View File

@ -21,7 +21,7 @@ targetdir=${targetdir-/tmp}
checkmodified=${checkmodified-yes}
editedfiles=`$VCCMD status . | egrep -v '^\?'`
#editedfiles=`$VCCMD status . | egrep -v '^\?'`
if test "$checkmodified" = "yes" -a ! -z "$editedfiles"; then
fatal "Edited files exist: " $editedfiles
fi
@ -45,6 +45,9 @@ yes | clean.O
$TAR chfX - excludefile . | (cd $topdir;$TAR xf -)
# Temporary, until the released recoll python module includes rclconfig.py
cp ../../python/recoll/recoll/rclconfig.py $topdir/recollscope
out=$releasename.tar.gz
(cd $targetdir ; \
$TAR chf - $releasename | \

View File

@ -13,7 +13,16 @@ try:
hasrclconfig = True
except:
hasrclconfig = False
# As a temporary measure, we also look for rclconfig as a bare
# module. This is so that the intermediate releases of the lens can
# ship and use rclconfig.py with the lens code
if not hasrclconfig:
try:
import rclconfig
hasrclconfig = True
except:
pass
try:
from recoll import recoll
from recoll import rclextract