Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a larger hana struct_macros.hpp header #208

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ del temp_prefix\lib\boost_numpy*.lib
del temp_prefix\lib\boost_numpy*.dll
rmdir /s /q temp_prefix\lib\cmake\boost_python-%PKG_VERSION%
rmdir /s /q temp_prefix\lib\cmake\boost_numpy-%PKG_VERSION%

set MAX_NUMBER_OF_MEMBERS=200
erb include\boost\hana\detail\struct_macros.hpp.erb > temp_prefix\include\boost\hana\detail\struct_macros.hpp
6 changes: 6 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ rm -f ./temp_prefix/lib/libboost_python*
rm -f ./temp_prefix/lib/libboost_numpy*
rm -rf ./temp_prefix/lib/cmake/boost_python*
rm -rf ./temp_prefix/lib/cmake/boost_numpy*

# Use a larger default for pre-generated headers.
# This generates more macros for larger sizes.
# See include/boost/hana/detail/struct_macros.hpp.erb for more details
h-vetinari marked this conversation as resolved.
Show resolved Hide resolved
export MAX_NUMBER_OF_MEMBERS=200
erb include/boost/hana/detail/struct_macros.hpp.erb > temp_prefix/include/boost/hana/detail/struct_macros.hpp
h-vetinari marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ source:
- patches/0003-Support-numpy-2.0.0b1.patch

build:
number: 1
number: 2
script_env:
- PY_DUMMY_VER={{ PY_DUMMY_VER }}
- NP_DUMMY_VER={{ NP_DUMMY_VER }}
Expand All @@ -44,6 +44,7 @@ requirements:
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- python {{ PY_DUMMY_VER }}.* *_cpython # [build_platform != target_platform]
- numpy {{ NP_DUMMY_VER }}.* # [build_platform != target_platform]
- ruby *
host:
- icu # [unix]
- xz # [unix]
Expand Down
Loading