Skip to content

Commit

Permalink
switch to building with bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jun 28, 2024
1 parent 4cb5a83 commit 09d8bc1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,23 @@ build:
- export PROTOC=$PREFIX/bin/protoc # [unix and (build_platform == target_platform)]
- export PROTOC=$BUILD_PREFIX/bin/protoc # [unix and (build_platform != target_platform)]
- set PROTOC=%LIBRARY_BIN%\protoc # [win]
- python setup.py bdist_wheel --cpp_implementation
- bazel build python/dist:source_wheel
- {{ PYTHON }} -m pip install -f dist protobuf=={{ major ~ "." ~ version }}

requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- libprotobuf {{ lib_major ~ "." ~ version }} # [build_platform != target_platform]
- bazel
- {{ compiler('c') }}
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
host:
- python
- pip
- setuptools
- libabseil
- libprotobuf {{ lib_major ~ "." ~ version }}
run:
- python
- setuptools

test:
imports:
Expand Down

0 comments on commit 09d8bc1

Please sign in to comment.