Skip to content

Commit

Permalink
add csp-next
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Mar 7, 2024
1 parent aa04af0 commit 0ebe5b7
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/csp-next/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64]
- "10.12" # [osx and x86_64]
MACOSX_SDK_VERSION: # [osx and x86_64]
- "10.12" # [osx and x86_64]
99 changes: 99 additions & 0 deletions recipes/csp-next/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{% set name = "csp-next" %}
{% set version = "0.0.2" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name [0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 6eec814b3b63fb8d7d9e309c36c14d3504a4e4f399a7eccc8cc4e2a1ddcb8529
patches:
- patches/0001-remove-old-cmake-args.patch

build:
number: 0
skip: true # [not linux]
script:
- export CSP_USE_VCPKG=0 # [not win]
- {{ PYTHON }} -m pip install . -vv --no-deps # [not win]
- set PSP_GENERATOR=Visual Studio 16 2019 # [win]
- set CSP_USE_VCPKG=0 # [win]
- {{ PYTHON }} setup.py build_ext install --single-version-externally-managed --record=record.txt # [win]
rpaths:
- {{ SP_DIR }}/csp/lib

requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- make # [not win]
host:
- python
- bison
- brotli
- cmake
- cyrus-sasl
- exprtk
- flex
- libarrow =15
- libparquet =15
- libprotobuf
- librdkafka
- lz4-c
- numpy
- pip
- pyarrow =15
- rapidjson
- ruamel.yaml
- scikit-build
- setuptools >=69
- tar
- unzip
- zip
- zlib
run:
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]
- python
- {{ pin_compatible('numpy') }}
- brotli
- cyrus-sasl
- libarrow =15
- libprotobuf
- librdkafka
- lz4-c
- packaging
- pandas <2.2
- pyarrow =15
- psutil
- pytz
- rapidjson
- ruamel.yaml
- sqlalchemy
- zlib

test:
imports:
- csp
commands:
- test -f ${SP_DIR}/pyarrow/libarrow_python.so # [linux]
- test -f ${SP_DIR}/pyarrow/libarrow_python_flight.so # [linux]
- test -f ${SP_DIR}/pyarrow/libarrow_python.dylib # [osx]
- test -f ${SP_DIR}/pyarrow/libarrow_python_flight.dylib # [osx]

about:
home: http://github.com/timkpaine/csp-next
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: csp is a high performance reactive stream processing library, written in C++ and Python
description: csp is a high performance reactive stream processing library, written in C++ and Python
dev_url: https://github.com/timkpaine/csp-next

extra:
recipe-maintainers:
- timkpaine
31 changes: 31 additions & 0 deletions recipes/csp-next/patches/0001-remove-old-cmake-args.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 32cadc5c6847c72fb90b83ea694c0025dcb6628b Mon Sep 17 00:00:00 2001
From: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Date: Thu, 7 Mar 2024 11:12:55 -0500
Subject: [PATCH] remove old cmake args

---
setup.py | 8 --------
1 file changed, 8 deletions(-)

diff --git a/setup.py b/setup.py
index a968daf..d5abe38 100644
--- a/setup.py
+++ b/setup.py
@@ -44,14 +44,6 @@ if CSP_USE_VCPKG and os.path.exists(vcpkg_toolchain_file):
else:
cmake_args.append("-DCSP_USE_VCPKG=OFF")

-
-# if "CONDA_PREFIX" in os.environ:
-# cmake_args.append(f"-DCMAKE_MODULE_PATH={os.environ['CONDA_PREFIX']}/lib/cmake/absl;{os.environ['CONDA_PREFIX']}/lib/cmake/arrow")
-
-if "CMAKE_ARGS" in os.environ:
- # conda
- cmake_args.extend(os.environ["CMAKE_ARGS"].split(" "))
-
if "CXX" in os.environ:
cmake_args.append(f"-DCMAKE_CXX_COMPILER={os.environ['CXX']}")

--
2.43.2

0 comments on commit 0ebe5b7

Please sign in to comment.