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"] testing = ["jaraco.itertools", "func-timeout"]
[metadata] [metadata]
content-hash = "260c6612feb7c884d03b3b98e5fb22ad4d06a58559876f239bd5c677d14a7ba1" content-hash = "94df87a12a92ccb6512e4c30965e7ba1fe54b4fa3ff75827ca55b3de8472b30e"
python-versions = "^3.6" python-versions = "^3.6"
[metadata.files] [metadata.files]

View file

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

View file

@ -232,11 +232,10 @@ git clone https://github.com/coreemu/core.git
### Install grpcio-tools ### Install grpcio-tools
Python module grpcio-tools is currently needed to generate gRPC protobuf code. Python module grpcio-tools is currently needed to generate gRPC protobuf code.
Specifically leveraging 1.27.2 to avoid compatibility issues with older versions Specifically leveraging 1.27.2 as that is what will be used during runtime.
of pip pulling down binary files.
```shell ```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 ### 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: def install_grpcio(c: Context, hide: bool) -> None:
print("installing grpcio-tools...") print("installing grpcio-tools...")
c.run( 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
) )