Skip to content

Commit

Permalink
Update package: pandas (Python 3.8), but released to the pypi-extra r…
Browse files Browse the repository at this point in the history
…epository because it depends on numpy>=1.20.3
  • Loading branch information
mhsmith committed Sep 5, 2023
1 parent 6d7096f commit f067806
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
10 changes: 7 additions & 3 deletions server/pypi/packages/pandas/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{% if PY_VER == "3.8" %}
{% set numpy_version = "1.19.5" %}
{% else %}
{% set numpy_version = "1.23.3" %}
{% endif %}

package:
name: pandas
version: "1.5.0"

requirements:
build:
- cython 0.29.32
host:
- numpy 1.23.3
- numpy {{ numpy_version }}
11 changes: 6 additions & 5 deletions server/pypi/packages/pandas/patches/chaquopy.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
--- src-original/setup.py 2021-08-15 12:44:44.000000000 +0000
+++ src/setup.py 2021-08-27 12:08:30.522085564 +0000
@@ -15,6 +15,10 @@
--- src-original/setup.py 2022-08-23 17:16:48.000000000 +0000
+++ src/setup.py 2023-09-05 08:36:00.870847761 +0000
@@ -15,6 +15,11 @@
import sys
from sysconfig import get_config_vars

+# Chaquopy
+import builtins
+builtins.__NUMPY_SETUP__ = True # Prevent the compiled parts from being imported.
+if "egg_info" not in sys.argv:
+ import builtins
+ builtins.__NUMPY_SETUP__ = True # Prevent the compiled parts from being imported.
+
import numpy
from pkg_resources import parse_version
Expand Down

0 comments on commit f067806

Please sign in to comment.