Skip to content

Commit a29cee3

Browse files
Dr-Irvjreback
authored andcommitted
BUG: Disable parallel cythonize on Windows (GH 30214) (#30585)
1 parent 35ba6b0 commit a29cee3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ci/azure/windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- bash: |
3535
source activate pandas-dev
3636
conda list
37-
python setup.py build_ext -q -i
37+
python setup.py build_ext -q -i -j 4
3838
python -m pip install --no-build-isolation -e .
3939
displayName: 'Build'
4040

doc/source/whatsnew/v1.0.0.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,8 @@ Other
980980
- Fixed :class:`IntegerArray` returning ``inf`` rather than ``NaN`` for operations dividing by 0 (:issue:`27398`)
981981
- Fixed ``pow`` operations for :class:`IntegerArray` when the other value is ``0`` or ``1`` (:issue:`29997`)
982982
- Bug in :meth:`Series.count` raises if use_inf_as_na is enabled (:issue:`29478`)
983-
- Bug in :class:`Index` where a non-hashable name could be set without raising ``TypeError`` (:issue:29069`)
983+
- Bug in :class:`Index` where a non-hashable name could be set without raising ``TypeError`` (:issue:`29069`)
984+
984985

985986
.. _whatsnew_1000.contributors:
986987

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,11 @@ def maybe_cythonize(extensions, *args, **kwargs):
526526
elif parsed.j:
527527
nthreads = parsed.j
528528

529+
# GH#30356 Cythonize doesn't support parallel on Windows
530+
if is_platform_windows() and nthreads > 0:
531+
print("Parallel build for cythonize ignored on Windows")
532+
nthreads = 0
533+
529534
kwargs["nthreads"] = nthreads
530535
build_ext.render_templates(_pxifiles)
531536
return cythonize(extensions, *args, **kwargs)

0 commit comments

Comments
 (0)