Skip to content

Commit b90cc09

Browse files
committed
Add path for Pandas to avoid loading native window module.
1 parent b1c0f8e commit b90cc09

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,19 @@ def pandas(**kwargs):
10151015
#define __Pyx_sst_abs(value) abs(value)
10161016
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
10171017
#define __Pyx_sst_abs(value) labs(value)
1018+
diff --git a/pandas/core/window.py b/pandas/core/window.py
1019+
index 8657420..f7b3f08 100644
1020+
--- a/pandas/core/window.py
1021+
+++ b/pandas/core/window.py
1022+
@@ -10,7 +10,7 @@ import warnings
1023+
1024+
import numpy as np
1025+
1026+
-import pandas._libs.window as libwindow
1027+
+libwindow = None
1028+
from pandas.compat._optional import import_optional_dependency
1029+
from pandas.compat.numpy import function as nv
1030+
from pandas.util._decorators import Appender, Substitution, cache_readonly
10181031
'''
10191032
cflags = "-allowcpp" if sys.implementation.name == "graalpython" else ""
10201033
install_from_pypi("pandas==0.25.0", patch=patch, add_cflags=cflags, **kwargs)

0 commit comments

Comments
 (0)