Windows: bundle python
This commit is contained in:
parent
dca627f5ef
commit
2855c99bbb
@ -1623,7 +1623,12 @@ string RclConfig::findFilter(const string &icmd) const
|
|||||||
// Prepend $datadir/filters
|
// Prepend $datadir/filters
|
||||||
temp = path_cat(m_datadir, "filters");
|
temp = path_cat(m_datadir, "filters");
|
||||||
PATH = temp + path_PATHsep() + PATH;
|
PATH = temp + path_PATHsep() + PATH;
|
||||||
|
#ifdef _WIN32
|
||||||
|
// Windows only: use the bundled Python
|
||||||
|
temp = path_cat(m_datadir, "filters");
|
||||||
|
temp = path_cat(temp, "python");
|
||||||
|
PATH = temp + path_PATHsep() + PATH;
|
||||||
|
#endif
|
||||||
// Prepend possible configuration parameter?
|
// Prepend possible configuration parameter?
|
||||||
if (getConfParam(string("filtersdir"), temp)) {
|
if (getConfParam(string("filtersdir"), temp)) {
|
||||||
temp = path_tildexpand(temp);
|
temp = path_tildexpand(temp);
|
||||||
|
|||||||
@ -27,6 +27,7 @@ RCL=c:/recoll/src/
|
|||||||
|
|
||||||
ReleaseBuild=y
|
ReleaseBuild=y
|
||||||
|
|
||||||
|
PYTHON=c:/recolldeps/python2
|
||||||
UNRTF=c:/recolldeps/unrtf
|
UNRTF=c:/recolldeps/unrtf
|
||||||
ANTIWORD=c:/recolldeps/antiword
|
ANTIWORD=c:/recolldeps/antiword
|
||||||
PYXSLT=C:/recolldeps/pyxslt
|
PYXSLT=C:/recolldeps/pyxslt
|
||||||
@ -115,7 +116,11 @@ copyzlib()
|
|||||||
{
|
{
|
||||||
chkcp $ZLIB/zlib1.dll $DESTDIR
|
chkcp $ZLIB/zlib1.dll $DESTDIR
|
||||||
}
|
}
|
||||||
|
copypython()
|
||||||
|
{
|
||||||
|
cp -rp $PYTHON $DESTDIR/Share/filters
|
||||||
|
chkcp $PYTHON/python.exe $DESTDIR/Share/filters/python/python.exe
|
||||||
|
}
|
||||||
copyrecoll()
|
copyrecoll()
|
||||||
{
|
{
|
||||||
# bindir=$RCL/windows/$PLATFORM/$CONFIGURATION/
|
# bindir=$RCL/windows/$PLATFORM/$CONFIGURATION/
|
||||||
@ -187,6 +192,10 @@ copyepub()
|
|||||||
# chkcp to check that epub is where we think it is
|
# chkcp to check that epub is where we think it is
|
||||||
chkcp $EPUB/build/lib/epub/opf.py $FILTERS/epub
|
chkcp $EPUB/build/lib/epub/opf.py $FILTERS/epub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# We used to copy the future module to the filters dir, but it is now
|
||||||
|
# part of the Python installation we copy (2 dirs:
|
||||||
|
# site-packages/builtins, site-packages/future)
|
||||||
copyfuture()
|
copyfuture()
|
||||||
{
|
{
|
||||||
cp -rp $FUTURE/future $FILTERS/
|
cp -rp $FUTURE/future $FILTERS/
|
||||||
@ -255,9 +264,10 @@ copypoppler
|
|||||||
copyantiword
|
copyantiword
|
||||||
copyunrtf
|
copyunrtf
|
||||||
copyxslt
|
copyxslt
|
||||||
copyfuture
|
#copyfuture
|
||||||
copymutagen
|
copymutagen
|
||||||
copyepub
|
copyepub
|
||||||
copypyexiv2
|
copypyexiv2
|
||||||
copywpd
|
copywpd
|
||||||
copychm
|
copychm
|
||||||
|
copypython
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user