Skip to content

Commit

Permalink
Merge pull request #208 from isuruf/large_hana
Browse files Browse the repository at this point in the history
Generate a larger hana struct_macros.hpp header
  • Loading branch information
isuruf committed Jun 25, 2024
2 parents ea36f3b + 89a8232 commit 67119c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
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 boost\hana\detail\struct_macros.hpp.erb > temp_prefix\include\boost\hana\detail\struct_macros.hpp
7 changes: 7 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ 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
# https://github.com/boostorg/hana/blob/boost-1.85.0/include/boost/hana/detail/struct_macros.hpp.erb
# for more details.
export MAX_NUMBER_OF_MEMBERS=200
erb boost/hana/detail/struct_macros.hpp.erb > temp_prefix/include/boost/hana/detail/struct_macros.hpp
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

0 comments on commit 67119c5

Please sign in to comment.