force grpcio related installations to all use the same version to avoid any version conflicts

This commit is contained in:
Blake Harnden 2020-07-13 08:58:32 -07:00
parent 5c58e99ad4
commit dcf3568098
4 changed files with 5 additions and 6 deletions

2
daemon/poetry.lock generated
View file

@ -602,7 +602,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["jaraco.itertools", "func-timeout"]
[metadata]
content-hash = "260c6612feb7c884d03b3b98e5fb22ad4d06a58559876f239bd5c677d14a7ba1"
content-hash = "94df87a12a92ccb6512e4c30965e7ba1fe54b4fa3ff75827ca55b3de8472b30e"
python-versions = "^3.6"
[metadata.files]

View file

@ -21,7 +21,7 @@ pyyaml = "*"
[tool.poetry.dev-dependencies]
black = "==19.3b0"
flake8 = "*"
grpcio-tools = "*"
grpcio-tools = "1.27.2"
isort = "*"
mock = "*"
pre-commit = "*"

View file

@ -232,11 +232,10 @@ git clone https://github.com/coreemu/core.git
### Install grpcio-tools
Python module grpcio-tools is currently needed to generate gRPC protobuf code.
Specifically leveraging 1.27.2 to avoid compatibility issues with older versions
of pip pulling down binary files.
Specifically leveraging 1.27.2 as that is what will be used during runtime.
```shell
python3 -m pip install --only-binary ":all:" --user grpcio-tools
python3 -m pip install --user grpcio==12.7.2 grpcio-tools==12.7.2
```
### Build and Install

View file

@ -101,7 +101,7 @@ def install_system(c: Context, os_info: OsInfo, hide: bool) -> None:
def install_grpcio(c: Context, hide: bool) -> None:
print("installing grpcio-tools...")
c.run(
"python3 -m pip install --only-binary \":all:\" --user grpcio-tools", hide=hide
"python3 -m pip install --user grpcio==12.7.2 grpcio-tools==12.7.2", hide=hide
)