Skip to content

Instantly share code, notes, and snippets.

@blink1073
Last active December 20, 2021 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blink1073/b56e7f1389a2b54fd357d96e544398f7 to your computer and use it in GitHub Desktop.
Save blink1073/b56e7f1389a2b54fd357d96e544398f7 to your computer and use it in GitHub Desktop.
prototype conda recipe for pymongoarrow
{% set name = "pymongoarrow" %}
{% set version = "0.2.0.dev0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: file:///home/runner/work/mongo-arrow/mongo-arrow/bindings/python/dist/pymongoarrow-{{ version }}.tar.gz
build:
number: 0
script:
- export MONGO_NO_COPY_LIBARROW=1 # [unix]
- export MONGO_LIBARROW_DIR="${PREFIX}/lib" # [unix]
- export MONGO_NO_COPY_LIBBSON=1 # [unix]
- export MONGO_LIBBSON_DIR="${PREFIX}" # [unix]
- set MONGO_NO_COPY_LIBARROW=1 # [win]
- set "MONGO_LIBARROW_DIR=%LIBRARY_LIB%" # [win]
- set MONGO_NO_COPY_LIBBSON=1 # [win]
- set "MONGO_LIBBSON_DIR=%LIBRARY_PREFIX%" # [win]
- {{ PYTHON }} -m pip install . --no-deps -vvv
requirements:
build:
- python >=3.6 # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- cython >=0.29 # [build_platform != target_platform]
- arrow-cpp # [build_platform != target_platform]
- pyarrow >=6,<6.1 # [build_platform != target_platform]
- libbson >=1,<2 # [build_platform != target_platform]
- setuptools >=47
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- python >=3.6
- arrow-cpp
- cython >=0.29
- libbson >=1,<2
- pip
- pyarrow >=6,<6.1
- python
run:
- {{ pin_compatible('pyarrow', max_pin='x') }}
- pymongo >=3.11,<5
- python >=3.6
test:
imports:
- pymongoarrow
commands:
- pip check
requires:
- pip
about:
home: https://pypi.org/project/pymongoarrow/
summary: Tools for using NumPy, Pandas and PyArrow with MongoDB
license: Apache-2.0
license_file: LICENSE
extra:
recipe-maintainers:
- blink1073
- ShaneHarvey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment