summaryrefslogtreecommitdiff
path: root/finance/quickfix/files/patch-m4_ax__python.m4
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2021-01-12 20:50:23 +0000
committerRene Ladan <rene@FreeBSD.org>2021-01-12 20:50:23 +0000
commit0fa85ea40c711fe0a79c231f6270fe0ead5445ea (patch)
treee42b31e645653af9ab0b2b89546d1b6e6e65e961 /finance/quickfix/files/patch-m4_ax__python.m4
parentdeskutils/xfce4-tumbler: fix build on GCC architectures (diff)
finance/quickfix: migrate to Python 3
PR: 251677 [1] PR: 249685 [2] Submitted by: maintainer [1] Submitted by: swills [1]
Diffstat (limited to 'finance/quickfix/files/patch-m4_ax__python.m4')
-rw-r--r--finance/quickfix/files/patch-m4_ax__python.m418
1 files changed, 3 insertions, 15 deletions
diff --git a/finance/quickfix/files/patch-m4_ax__python.m4 b/finance/quickfix/files/patch-m4_ax__python.m4
index 8e3dbc397632..89e73ecf51c7 100644
--- a/finance/quickfix/files/patch-m4_ax__python.m4
+++ b/finance/quickfix/files/patch-m4_ax__python.m4
@@ -16,28 +16,16 @@
has_python3=false
)
-@@ -44,20 +47,20 @@ AC_SUBST(PYTHON3_PREFIX)
-
- if test $has_python2 = true
- then
-- PYTHON2_INCLUDE_PATH=[`python2 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
-+ PYTHON2_INCLUDE_PATH=[`python2.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
- PYTHON2_CFLAGS="-I${PYTHON2_INCLUDE_PATH}"
- AC_SUBST(PYTHON2_CFLAGS)
-- PYTHON2_SITE_PACKAGES=[`python2 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
-+ PYTHON2_SITE_PACKAGES=[`python2.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
- AC_SUBST(PYTHON2_SITE_PACKAGES)
- AC_DEFINE(HAVE_PYTHON2, 1, Define if you have python2)
- fi
+@@ -54,10 +57,10 @@ fi
if test $has_python3 = true
then
- PYTHON3_INCLUDE_PATH=[`python3 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
-+ PYTHON3_INCLUDE_PATH=[`python3.6 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
++ PYTHON3_INCLUDE_PATH=[`python3.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
PYTHON3_CFLAGS="-I${PYTHON3_INCLUDE_PATH}"
AC_SUBST(PYTHON3_CFLAGS)
- PYTHON3_SITE_PACKAGES=[`python3 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
-+ PYTHON3_SITE_PACKAGES=[`python3.6 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
++ PYTHON3_SITE_PACKAGES=[`python3.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
AC_SUBST(PYTHON3_SITE_PACKAGES)
AC_DEFINE(HAVE_PYTHON3, 1, Define if you have python3)
fi