Skip to content

Commit 8ba7390

Browse files
committed
Do not use C++ complex in Pandas.
1 parent 9e4a471 commit 8ba7390

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,20 @@ def pandas(**kwargs):
11931193
#define __Pyx_sst_abs(value) abs(value)
11941194
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
11951195
#define __Pyx_sst_abs(value) labs(value)
1196+
@@ -881,13 +881,7 @@ static const char *__pyx_filename;
1197+
1198+
/* Header.proto */
1199+
#if !defined(CYTHON_CCOMPLEX)
1200+
- #if defined(__cplusplus)
1201+
- #define CYTHON_CCOMPLEX 1
1202+
- #elif defined(_Complex_I)
1203+
- #define CYTHON_CCOMPLEX 1
1204+
- #else
1205+
#define CYTHON_CCOMPLEX 0
1206+
- #endif
1207+
#endif
1208+
#if CYTHON_CCOMPLEX
1209+
#ifdef __cplusplus
11961210
diff --git a/pandas/core/window.py b/pandas/core/window.py
11971211
index 8657420..f7b3f08 100644
11981212
--- a/pandas/core/window.py
@@ -1208,7 +1222,7 @@ def pandas(**kwargs):
12081222
from pandas.util._decorators import Appender, Substitution, cache_readonly
12091223
'''
12101224
# workaround until Sulong toolchain fixes this
1211-
cflags = "-stdlib=libc++ -lc++ -lm -lc" if sys.implementation.name == "graalpython" else ""
1225+
cflags = "-stdlib=libc++ -lm -lc" if sys.implementation.name == "graalpython" else ""
12121226
install_from_pypi("pandas==0.25.0", patch=patch, add_cflags=cflags, **kwargs)
12131227

12141228
return locals()

0 commit comments

Comments
 (0)