summaryrefslogtreecommitdiff
path: root/math/sage/files/py_libs_spkg-configure.m4
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2020-06-17 10:05:10 +0000
committerThierry Thomas <thierry@FreeBSD.org>2020-06-17 10:05:10 +0000
commit97d81944e807b28c579a6190708bb373eabe8a0f (patch)
tree1b03af7ddc6ffe6cc67137e6cabaf2c7c20af172 /math/sage/files/py_libs_spkg-configure.m4
parent- Update WWW (diff)
- Unbreak and upgrade to 9.1
- Take maintainership. PR: 247298 Submitted by: /me Approved by: stephen (previous maintainer) Differential Revision: D24195
Diffstat (limited to 'math/sage/files/py_libs_spkg-configure.m4')
-rw-r--r--math/sage/files/py_libs_spkg-configure.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/math/sage/files/py_libs_spkg-configure.m4 b/math/sage/files/py_libs_spkg-configure.m4
new file mode 100644
index 000000000000..db82eafd4939
--- /dev/null
+++ b/math/sage/files/py_libs_spkg-configure.m4
@@ -0,0 +1,11 @@
+SAGE_SPKG_CONFIGURE(
+ [py_libs], [dnl direct testing for import module
+ AC_MSG_CHECKING(Import module py_libs...)
+ python3 -c "import py_libs;" > /dev/null 2>&1
+ if test $? -ne 0; then
+ AC_MSG_RESULT(KO)
+ sage_spkg_install_py_libs=yes
+ else
+ AC_MSG_RESULT(OK)
+ fi
+])