Skip to content

Commit dcf11a1

Browse files
committed
GR-43572: update pandas to 1.5.2
- reduce parallelism to 1 (GR-43514)
1 parent f32fdbd commit dcf11a1

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -455,7 +455,7 @@ def pandas(**kwargs):
455455
dateutil(**kwargs)
456456
numpy(**kwargs)
457457

458-
install_from_pypi("pandas==1.4.3", **kwargs)
458+
install_from_pypi("pandas==1.5.2", **kwargs)
459459

460460
@pip_package()
461461
def scipy(**kwargs):
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git a/pandas/io/common.py b/pandas/io/common.py
2+
index f31de63..1858912 100644
3+
--- a/pandas/io/common.py
4+
+++ b/pandas/io/common.py
5+
@@ -706,8 +706,8 @@ def get_handle(
6+
7+
# validate encoding and errors
8+
codecs.lookup(encoding)
9+
- if isinstance(errors, str):
10+
- codecs.lookup_error(errors)
11+
+ # if isinstance(errors, str):
12+
+ # codecs.lookup_error(errors)
13+
14+
# open URLs
15+
ioargs = _get_filepath_or_buffer(
16+
diff --git a/setup.py b/setup.py
17+
index 12e8aa3..0d07514 100755
18+
--- a/setup.py
19+
+++ b/setup.py
20+
@@ -419,7 +419,7 @@ def maybe_cythonize(extensions, *args, **kwargs):
21+
parser.add_argument("--parallel", "-j", type=int, default=1)
22+
parsed, _ = parser.parse_known_args()
23+
24+
- kwargs["nthreads"] = parsed.parallel
25+
+ kwargs["nthreads"] = 1 # parsed.parallel
26+
build_ext.render_templates(_pxifiles)
27+
return cythonize(extensions, *args, **kwargs)
28+

0 commit comments

Comments
 (0)