mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 01:56:18 +01:00
configure --without-python
This commit is contained in:
parent
3cef6da499
commit
245220211b
@ -105,6 +105,7 @@ qmckl_wrap_c = python/src/qmckl_wrap.c
|
||||
qmckl_include_i = python/src/qmckl_include.i
|
||||
qmckl_py = python/src/qmckl.py
|
||||
|
||||
if HAVE_PYTHON
|
||||
dist_python_DATA = $(setup_py) $(qmckl_py) $(qmckl_wrap_c) \
|
||||
$(srcdir)/python/pyproject.toml \
|
||||
$(srcdir)/python/requirements.txt \
|
||||
@ -124,7 +125,9 @@ python-test: $(test_py)
|
||||
cd $(abs_srcdir)/python/test/ && \
|
||||
python test_api.py
|
||||
|
||||
.PHONY: python-test python-install cppcheck
|
||||
endif
|
||||
|
||||
.PHONY: cppcheck python-test python-install
|
||||
|
||||
|
||||
if QMCKL_DEVEL
|
||||
|
@ -53,6 +53,7 @@ make -j
|
||||
make -j check
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir -p _build_intel_fast/_install
|
||||
cd _build_intel_fast
|
||||
../configure --prefix=$PWD/_install --enable-hpc --with-icc --with-ifort
|
||||
|
14
configure.ac
14
configure.ac
@ -283,11 +283,12 @@ AS_IF([test "x$enable_hpc" = "xyes"],
|
||||
AC_ARG_ENABLE([doc],
|
||||
[AS_HELP_STRING([--disable-doc],
|
||||
[Disable documentation])],
|
||||
[enable_doc=$withval],
|
||||
[enable_doc=$enableval],
|
||||
[enable_doc=yes])
|
||||
|
||||
AM_CONDITIONAL([HAVE_DOC],[test "x$enable_doc" = "xyes"])
|
||||
|
||||
|
||||
# Enable Verificarlo tests
|
||||
AC_ARG_ENABLE([vfc_ci],
|
||||
[AS_HELP_STRING([--enable-vfc_ci],
|
||||
@ -442,6 +443,14 @@ AS_IF([test "x$enable_maintainer_mode" = "xyes"],
|
||||
|
||||
AM_CONDITIONAL([QMCKL_DEVEL],[test "x$QMCKL_DEVEL" != x])
|
||||
|
||||
AC_ARG_ENABLE([python],
|
||||
[AS_HELP_STRING([--disable-python],
|
||||
[Disable building Python binding])],
|
||||
[enable_python=$enableval],
|
||||
[enable_python=yes])
|
||||
|
||||
AM_CONDITIONAL([HAVE_PYTHON],[test "x$enable_python" = "xyes"])
|
||||
|
||||
AS_IF([test "x${QMCKL_DEVEL}" != "x"], [
|
||||
AC_PROG_AWK
|
||||
AM_PATH_PYTHON
|
||||
@ -457,8 +466,10 @@ AS_IF([test "x${QMCKL_DEVEL}" != "x"], [
|
||||
AC_CHECK_PROGS([HAS_CPPCHECK],[cppcheck],[no])
|
||||
AS_IF([test "x${HAS_CPPCHECK}" != "xno"], [HAS_CPPCHECK=1])
|
||||
|
||||
AS_IF([test "x$enable_python" = "xyes"], [
|
||||
AX_PKG_SWIG(4.0.0, [], AC_MSG_WARN([SWIG is required to build Python API.]) )
|
||||
] )
|
||||
])
|
||||
|
||||
|
||||
#PKG-CONFIG
|
||||
@ -497,6 +508,7 @@ HPC version.....: ${HAVE_HPC}
|
||||
LDFLAGS:........: ${LDFLAGS}
|
||||
LIBS............: ${LIBS}
|
||||
OPENMP..........: ${with_omp}
|
||||
PYTHON..........: ${enable_python}
|
||||
QMCKL_DGEMM.....: ${with_qmckldgemm}
|
||||
TREXIO..........: ${with_trexio}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user