archrelease: copy trunk to community-any
[ArchLinux/community.git] / ecasound / trunk / python310.patch
blob2389cafaf531717d8408c51be117720d89d3ca6c
1 diff -upr ecasound-2.9.3.orig/configure.ac ecasound-2.9.3/configure.ac
2 --- ecasound-2.9.3.orig/configure.ac 2021-12-10 00:41:16.885454017 +0200
3 +++ ecasound-2.9.3/configure.ac 2021-12-10 00:49:08.561244161 +0200
4 @@ -602,7 +602,7 @@ then
5 pyecasound_support=none
6 AC_MSG_RESULT([none])
7 if test x$PYTHONPATH != xnone; then
8 - python_prefix_tmp=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[[:3]])"`
9 + python_prefix_tmp=`python -c "import sys; print (sys.prefix + '/lib/python' + '{0}.{1}'.format(sys.version_info.major, sys.version_info.minor))"`
10 else
11 python_prefix_tmp="DIR"
13 @@ -617,7 +617,7 @@ then
14 else
15 pymoddirs="/usr/local/lib /usr/lib"
16 dnl -- Double-brackets to espace the real brackets
17 - pymoddirsmore=`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[[:3]])"`
18 + pymoddirsmore=`python -c "import sys; print (sys.prefix + '/lib/python' + '{0}.{1}'.format(sys.version_info.major, sys.version_info.minor))"`
19 pymoddirs="$pymoddirs $pymoddirsmore"
20 AC_MSG_RESULT($pymoddirs)