Skip to content

Commit

Permalink
Switch to pip for installing package
Browse files Browse the repository at this point in the history
On macOS, the egg is generated for 10.9 and since the host machine is
probably 12.x, setuptools refuses to detect that as a valid egg and
proceeds to download and install.

xref: pypa/setuptools#3687
  • Loading branch information
nehaljwani committed Jun 10, 2023
1 parent ad0467a commit 9d9f9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ build:
number: 0
# VS 2008 is not supported for libprotobuf
skip: true # [win and py2k]
script: python setup.py install --with-protobuf-include-dir=$PREFIX/include --with-protobuf-lib-dir=$PREFIX/lib --with-protoc=$BUILD_PREFIX/bin/protoc --with-mysql-capi=$PREFIX # [unix]
script: python setup.py install --with-protobuf-include-dir=%LIBRARY_INC% --with-protobuf-lib-dir=%LIBRARY_LIB% --with-protoc=%LIBRARY_BIN%/protoc.exe --with-mysql-capi=%LIBRARY_PREFIX% --extra-compile-args=/DPROTOBUF_USE_DLLS # [win]
script: PROTOBUF_INCLUDE_DIR=$PREFIX/include PROTOBUF_LIB_DIR=$PREFIX/lib PROTOC=$BUILD_PREFIX/bin/protoc MYSQL_CAPI=$PREFIX pip install . --no-deps --verbose # [unix]
script: PROTOBUF_INCLUDE_DIR=%LIBRARY_INC% PROTOBUF_LIB_DIR=%LIBRARY_LIB% PROTOC=%LIBRARY_BIN%/protoc.exe MYSQL_CAPI=%LIBRARY_PREFIX% EXTRA_COMPILE_ARGS=/DPROTOBUF_USE_DLLS pip install . --no-deps --verbose # [win]


requirements:
Expand All @@ -35,7 +35,7 @@ requirements:

host:
- python
- setuptools
- pip
- mysql-devel {{ version }}
- libprotobuf
- protobuf >=3.11.0,<=3.20.3
Expand Down

0 comments on commit 9d9f9d4

Please sign in to comment.