-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeta.yaml
122 lines (115 loc) · 5.24 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{% set name = "csp" %}
{% set version = "0.0.7" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.org/packages/source/{{ name [0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 8556eb503b71c3477f0fe4584de15b236048ee51b75843a2db864eec2e2e45a3
patches:
- patches/0001-remove-autogen.patch # [build_platform != target_platform]
- patches/0002-local-csp.patch
build:
number: 0
# conda-build fails to find .pyd files co-located next to each other whereas the windows
# DLL loader does.
error_overlinking: false # [win]
script:
# We can't cross-compile on csp due to https://github.com/Point72/csp/issues/264
# So we "fake it" and use pregenerated files
- mkdir -p $SRC_DIR/_skbuild/macosx-10.15-arm64-{3.8,3.9,3.10,3.11,3.12}/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- mkdir -p $SRC_DIR/_skbuild/macosx-10.15-arm64-{3.8,3.9,3.10,3.11,3.12}/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/engine/{autogen_types.cpp,autogen_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.8/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/engine/{autogen_types.cpp,autogen_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.9/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/engine/{autogen_types.cpp,autogen_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.10/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/engine/{autogen_types.cpp,autogen_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.11/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/engine/{autogen_types.cpp,autogen_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.12/cmake-build/cpp/csp/engine/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/adapters/websocket/{websocket_types.cpp,websocket_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.8/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/adapters/websocket/{websocket_types.cpp,websocket_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.9/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/adapters/websocket/{websocket_types.cpp,websocket_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.10/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/adapters/websocket/{websocket_types.cpp,websocket_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.11/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- cp $RECIPE_DIR/patches/adapters/websocket/{websocket_types.cpp,websocket_types.h} $SRC_DIR/_skbuild/macosx-10.15-arm64-3.12/cmake-build/cpp/csp/adapters/websocket/csp_autogen/ # [build_platform != target_platform]
- export CSP_USE_VCPKG=0 # [not win]
- {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation # [not win]
- set CSP_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 # [not win]
run_exports:
- {{ pin_subpackage('csp', max_pin='x.x.x') }}
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy <2 # [build_platform != target_platform]
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
- cmake
- make # [not win]
- bison # [not win]
- flex # [not win]
host:
- python
- brotli
- cmake
- cyrus-sasl
- deprecated
- exprtk
- gtest
- libarrow =16
- libboost-headers
- libparquet =16
- libprotobuf
- librdkafka
- lz4-c
- numpy <2
- openssl
- pip
- pyarrow =16
- rapidjson
- ruamel.yaml
- scikit-build
- setuptools >=69,<74
- typing-extensions
- websocketpp
- zlib
run:
- python
- {{ pin_compatible('numpy') }}
- backports.zoneinfo # [py<39]
- deprecated
- openssl
- packaging
- pandas
- pyarrow =16
- psutil
- pytz
- rapidjson
- ruamel.yaml
- sqlalchemy
test:
requires:
- pip
commands:
- pip check
imports:
- csp
about:
home: http://github.com/point72/csp
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/point72/csp
extra:
recipe-maintainers:
- ptomecek
- alexddobkin
- robambalu
- AdamGlustein
- timkpaine