Changeset: 3ac212b87628 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3ac212b87628
Modified Files:
        testing/Mtest.py.in
Branch: Jun2020
Log Message:

Add test conditional HAVE_PYTHON_LZ4.


diffs (24 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -398,6 +398,7 @@ CONDITIONALS = {
     'HAVE_PHP'             : "",
     'HAVE_PYMONETDB'       : "", # default PYTHON can import pymonetdb
     'HAVE_PY3MONETDB'      : "", # PYTHON3 exists and can import pymonetdb
+    'HAVE_PYTHON_LZ4'      : "", # module lz4 is available
     'HAVE_RUBY'            : "",
     'HAVE_DATA_PATH'       : "",
     'MERCURIAL'            : "",
@@ -3880,6 +3881,12 @@ def main(argv) :
         print('Python available, but pymonetdb package not available')
     else:
         CONDITIONALS['HAVE_PYMONETDB'] = '#'
+    try:
+        import lz4
+    except ImportError:
+        CONDITIONALS['HAVE_PYTHON_LZ4'] = False
+    else:
+        CONDITIONALS['HAVE_PYTHON_LZ4'] = True
     if 'PYTHON3' in os.environ:
         proc = process.Popen([os.environ['PYTHON3'], '-c', 'import scipy'],
                              stdout=process.PIPE, stderr=process.PIPE,
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to