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

Commitb06649b

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 parent991dee2 commitb06649b

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

‎config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,4 @@ AC_SUBST(python_libdir)[]dnl
8080
AC_SUBST(python_libspec)[]dnl
8181
AC_SUBST(python_additional_libs)[]dnl
8282
83-
# threaded python is not supported on OpenBSD
84-
AC_MSG_CHECKING(whetherPythoniscompiledwiththreadsupport)
85-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
86-
if test "$pythreads" = "1"; then
87-
AC_MSG_RESULT(yes)
88-
case $host_os in
89-
openbsd*)
90-
AC_MSG_ERROR([threaded Python not supported on this platform])
91-
;;
92-
esac
93-
else
94-
AC_MSG_RESULT(no)
95-
fi
96-
9783
])# PGAC_CHECK_PYTHON_EMBED_SETUP

‎configure

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7146,25 +7146,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print('
71467146
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
71477147

71487148

7149-
# threaded python is not supported on OpenBSD
7150-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7151-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7152-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7153-
if test "$pythreads" = "1"; then
7154-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7155-
$as_echo "yes" >&6; }
7156-
case $host_os in
7157-
openbsd*)
7158-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7159-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7160-
{ (exit 1); exit 1; }; }
7161-
;;
7162-
esac
7163-
else
7164-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7165-
$as_echo "no" >&6; }
7166-
fi
7167-
71687149

71697150
fi
71707151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp