Skip to content

Commit 6ff12ee

Browse files
Dr-Irvhweecat
authored andcommitted
BUG: Disable parallel cythonize on Windows (GH 30214) (pandas-dev#30585)
1 parent a3ffa9c commit 6ff12ee

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
@@ -972,7 +972,8 @@ Other
972972
- Fixed :class:`IntegerArray` returning ``inf`` rather than ``NaN`` for operations dividing by 0 (:issue:`27398`)
973973
- Fixed ``pow`` operations for :class:`IntegerArray` when the other value is ``0`` or ``1`` (:issue:`29997`)
974974
- Bug in :meth:`Series.count` raises if use_inf_as_na is enabled (:issue:`29478`)
975-
- Bug in :class:`Index` where a non-hashable name could be set without raising ``TypeError`` (:issue:29069`)
975+
- Bug in :class:`Index` where a non-hashable name could be set without raising ``TypeError`` (:issue:`29069`)
976+
976977

977978
.. _whatsnew_1000.contributors:
978979

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)