1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-04-27 02:10:49 +00:00

add --with-python3 option (#55)

* add --with-python3 option

* debian package with python3
This commit is contained in:
Xiangyue Cai 2020-06-18 11:23:11 +08:00 committed by GitHub
parent 29f0c14b37
commit 50ff08b03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -83,6 +83,9 @@ fi
AM_CONDITIONAL([FBSD], [test "$bfbsd" = "yes"])
AC_SUBST(FBSD)
AC_ARG_WITH([python3], [AS_HELP_STRING([--with-python3], [use python3])],
[with_python3="yes"],[])
# Checks for libraries.
GLIB_REQUIRED=2.26.0
@ -98,10 +101,10 @@ PKG_CHECK_MODULES(JANSSON, [jansson >= $JANSSON_REQUIRED])
AC_SUBST(JANSSON_CFLAGS)
AC_SUBST(JANSSON_LIBS)
if test "$bwin32" = "true" -o "$bmac" = "yes"; then
AM_PATH_PYTHON([2.7])
else
if test "$with_python3" = "yes"; then
AM_PATH_PYTHON([3.5])
else
AM_PATH_PYTHON([2.7])
fi
if test "$bwin32" = true; then

2
debian/rules vendored
View File

@ -6,7 +6,7 @@
override_dh_auto_configure:
./autogen.sh
dh_auto_configure -- --disable-compile-demo
dh_auto_configure -- --disable-compile-demo --with-python3
override_dh_strip:
# emptying the dependency_libs field in .la files