Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86832eb

Browse files
committed
Remove configure check prohibiting threaded libpython on OpenBSD.
According to recent tests, this case now works fine, so there's no reasonto reject it anymore. (Even if there are still some OpenBSD platformsin the wild where it doesn't work, removing the check won't break any casethat worked before.)We can actually remove the entire test that discovers whether libpythonis threaded, since without the OpenBSD case there's no need to know thatat all.Per report from Davin Potts. Back-patch to all active branches.
1 parent1f303fd commit86832eb

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

‎config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,4 @@ AC_SUBST(python_libdir)[]dnl
9797
AC_SUBST(python_libspec)[]dnl
9898
AC_SUBST(python_additional_libs)[]dnl
9999
100-
# threaded python is not supported on OpenBSD
101-
AC_MSG_CHECKING(whetherPythoniscompiledwiththreadsupport)
102-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
103-
if test "$pythreads" = "1"; then
104-
AC_MSG_RESULT(yes)
105-
case $host_os in
106-
openbsd*)
107-
AC_MSG_ERROR([threaded Python not supported on this platform])
108-
;;
109-
esac
110-
else
111-
AC_MSG_RESULT(no)
112-
fi
113-
114100
])# PGAC_CHECK_PYTHON_EMBED_SETUP

‎configure

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7526,23 +7526,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join
75267526
$as_echo"${python_libspec}${python_additional_libs}">&6; }
75277527

75287528

7529-
# threaded python is not supported on OpenBSD
7530-
{$as_echo"$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support">&5
7531-
$as_echo_n"checking whether Python is compiled with thread support...">&6; }
7532-
pythreads=`${PYTHON} -c"import sys; print(int('thread' in sys.builtin_module_names))"`
7533-
iftest"$pythreads" ="1";then
7534-
{$as_echo"$as_me:${as_lineno-$LINENO}: result: yes">&5
7535-
$as_echo"yes">&6; }
7536-
case$host_osin
7537-
openbsd*)
7538-
as_fn_error$?"threaded Python not supported on this platform""$LINENO" 5
7539-
;;
7540-
esac
7541-
else
7542-
{$as_echo"$as_me:${as_lineno-$LINENO}: result: no">&5
7543-
$as_echo"no">&6; }
7544-
fi
7545-
75467529

75477530

75487531
# We need libpython as a shared library. With Python >=2.5, we

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp