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

Commit5585cc7

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 parent2e4c501 commit5585cc7

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
@@ -85,18 +85,4 @@ AC_SUBST(python_libdir)[]dnl
8585
AC_SUBST(python_libspec)[]dnl
8686
AC_SUBST(python_additional_libs)[]dnl
8787
88-
# threaded python is not supported on OpenBSD
89-
AC_MSG_CHECKING(whetherPythoniscompiledwiththreadsupport)
90-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
91-
if test "$pythreads" = "1"; then
92-
AC_MSG_RESULT(yes)
93-
case $host_os in
94-
openbsd*)
95-
AC_MSG_ERROR([threaded Python not supported on this platform])
96-
;;
97-
esac
98-
else
99-
AC_MSG_RESULT(no)
100-
fi
101-
10288
])# PGAC_CHECK_PYTHON_EMBED_SETUP

‎configure

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

74057405

7406-
# threaded python is not supported on OpenBSD
7407-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7408-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7409-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7410-
if test "$pythreads" = "1"; then
7411-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7412-
$as_echo "yes" >&6; }
7413-
case $host_os in
7414-
openbsd*)
7415-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7416-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7417-
{ (exit 1); exit 1; }; }
7418-
;;
7419-
esac
7420-
else
7421-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7422-
$as_echo "no" >&6; }
7423-
fi
7424-
74257406

74267407
fi
74277408

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp