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

Commit9e980e7

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 parent605326e commit9e980e7

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
@@ -95,18 +95,4 @@ AC_SUBST(python_libspec)[]dnl
9595
AC_SUBST(python_additional_libs)[]dnl
9696
AC_SUBST(python_enable_shared)[]dnl
9797
98-
# threaded python is not supported on OpenBSD
99-
AC_MSG_CHECKING(whetherPythoniscompiledwiththreadsupport)
100-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
101-
if test "$pythreads" = "1"; then
102-
AC_MSG_RESULT(yes)
103-
case $host_os in
104-
openbsd*)
105-
AC_MSG_ERROR([threaded Python not supported on this platform])
106-
;;
107-
esac
108-
else
109-
AC_MSG_RESULT(no)
110-
fi
111-
11298
])# PGAC_CHECK_PYTHON_EMBED_SETUP

‎configure

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

76767676

7677-
# threaded python is not supported on OpenBSD
7678-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7679-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7680-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7681-
if test "$pythreads" = "1"; then
7682-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7683-
$as_echo "yes" >&6; }
7684-
case $host_os in
7685-
openbsd*)
7686-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7687-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7688-
{ (exit 1); exit 1; }; }
7689-
;;
7690-
esac
7691-
else
7692-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7693-
$as_echo "no" >&6; }
7694-
fi
7695-
76967677

76977678
fi
76987679

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp