mirror of
https://github.com/python/cpython
synced 2026-09-28 07:38:20 +03:00
merge 68874 to py3kwq!
This commit is contained in:
parent
21cbf5f896
commit
6fd47e2ce1
2 changed files with 10 additions and 3 deletions
|
|
@ -139,6 +139,10 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #3807: _multiprocessing build fails when configure is passed
|
||||||
|
--without-threads argument. When this occurs, _multiprocessing will
|
||||||
|
be disabled, and not compiled.
|
||||||
|
|
||||||
- Issue #5008: When a file is opened in append mode with the new IO library,
|
- Issue #5008: When a file is opened in append mode with the new IO library,
|
||||||
do an explicit seek to the end of file (so that e.g. tell() returns the
|
do an explicit seek to the end of file (so that e.g. tell() returns the
|
||||||
file size rather than 0). This is consistent with the behaviour of the
|
file size rather than 0). This is consistent with the behaviour of the
|
||||||
|
|
|
||||||
9
setup.py
9
setup.py
|
|
@ -1063,9 +1063,12 @@ class PyBuildExt(build_ext):
|
||||||
if macros.get('HAVE_SEM_OPEN', False):
|
if macros.get('HAVE_SEM_OPEN', False):
|
||||||
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
|
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
|
||||||
|
|
||||||
exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
|
if sysconfig.get_config_var('WITH_THREAD'):
|
||||||
define_macros=list(macros.items()),
|
exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
|
||||||
include_dirs=["Modules/_multiprocessing"]))
|
define_macros=list(macros.items()),
|
||||||
|
include_dirs=["Modules/_multiprocessing"]))
|
||||||
|
else:
|
||||||
|
missing.append('_multiprocessing')
|
||||||
# End multiprocessing
|
# End multiprocessing
|
||||||
|
|
||||||
# Platform-specific libraries
|
# Platform-specific libraries
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue