On Tue, Sep 11, 2007 at 09:37:18PM +0200, Sjoerd Mullender wrote:
> On 2007-09-11 21:31, Stefan Manegold wrote:
> > On Tue, Sep 11, 2007 at 09:26:03PM +0200, Stefan Manegold wrote:
> >> On Tue, Sep 11, 2007 at 11:11:49AM +0000, Sjoerd Mullender wrote:
> >>> Update of /cvsroot/monetdb/MonetDB/src/testing
> >>> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17756/src/testing
> >>>
> >>> Modified Files:
> >>> Makefile.ag Mtest.py.in
> >>> Log Message:
> >>> Put Python files in their own Python module MonetDB.
> >>> In the RPMs, put Python files in the Python hierarchy.
> >>> Created a new RPM MonetDB-python which contains monet_options.py and
> >>> other such files.
> >>> Added merovingian man page to RPM.
> >>> Fixed MonetDB5 spec file.
> >>> Removed Python ODBC interface: it was not directly related to MonetDB.
> >> These changes requires to set
> >> PYTHONPATH="MONETDB_PREFIX/`python -c 'import distutils.sysconfig; print
> >> distutils.sysconfig.get_python_lib(0,0,"")'`"
> >
> > ^
> > typo
> > |
> >
> > V
> > PYTHONPATH="MONETDB_PREFIX/`python -c 'import distutils.sysconfig; print
> > distutils.sysconfig.get_python_lib(1,0,"")'`"
> >
> > Stefan
> >
> >> before calling Mtest.py, unless MONETDB_PREFIX is /usr .
> >>
> >> Should we consider making Mtest.py search automatically for modules in the
> >> above path
> >> (as it IMHO did before), or shall we just document the above requirement?
>
> We already have a requirement to set PYTHONPATH for the benefit of
> autogen, so we might as well add this requirement. We could possibly
> set it in RunMtest as well.
indeed --- alternatively, this patch might be considered "convenient":
========
Index: MonetDB/src/testing/Mtest.py.in
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/testing/Mtest.py.in,v
retrieving revision 1.303
diff -u -r1.303 Mtest.py.in
--- MonetDB/src/testing/Mtest.py.in 11 Sep 2007 15:51:34 -0000 1.303
+++ MonetDB/src/testing/Mtest.py.in 11 Sep 2007 19:39:54 -0000
@@ -98,6 +98,9 @@
str = nstr
return str
+import distutils.sysconfig
+sys.path.append(_configure(os.path.join('@QXprefix@',distutils.sysconfig.get_python_lib(1,0,""))))
+
from MonetDB import monet_options
try:
import subprocess
========
but I leave the final decision to you ;-)
> I didn't notice since I already had this in my PYTHONPATH.
no problem --- I doubt, though, that I'm still awake enough to update/fix
all RunMtest and the TestTools before tonights testing starts; hence,
testing might fail tonight ... not a major problem since we're aware of the
reason and will fix it tomorrow.
Stefan
> --
> Sjoerd Mullender
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Monetdb-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>
--
| Dr. Stefan Manegold | mailto:[EMAIL PROTECTED] |
| CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ |
| 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 |
| The Netherlands | Fax : +31 (20) 592-4312 |
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers