Skip to content

Commit 2adb614

Browse files
committed
add back cython for pandas
1 parent af03657 commit 2adb614

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pythonforandroid/recipes/pandas/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class PandasRecipe(MesonRecipe):
66
version = 'v2.3.0'
77
url = 'git+https://github.com/pandas-dev/pandas'
88
depends = ['numpy', 'libbz2', 'liblzma']
9-
hostpython_prerequisites = ["versioneer[toml]", "numpy>=2.0"] # meson does not detects venv's cython
9+
hostpython_prerequisites = ["versioneer[toml]", "numpy>=2.0", "Cython<4.0.0a0"] # meson does not detects venv's cython
1010
patches = ['fix_numpy_includes.patch']
1111
python_depends = ['python-dateutil', 'pytz']
1212
need_stl_shared = True
@@ -29,5 +29,9 @@ def get_recipe_env(self, arch, **kwargs):
2929
env['LDFLAGS'] += f' -landroid -l{self.stl_lib_name}'
3030
return env
3131

32+
def build_arch(self, arch):
33+
super().build_arch(arch)
34+
self.restore_hostpython_prerequisites(["cython"])
35+
3236

3337
recipe = PandasRecipe()

0 commit comments

Comments
 (0)