mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 18:01:08 -06:00
Optionally install python modules defined in dev-requirements.txt
This commit is contained in:
parent
44617ae105
commit
e94ac51568
2
.github/workflows/ResInsightWithCache.yml
vendored
2
.github/workflows/ResInsightWithCache.yml
vendored
@ -87,7 +87,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r GrpcInterface/Python/requirements.txt
|
||||
pip install -r GrpcInterface/Python/dev-requirements.txt
|
||||
|
||||
- name: Use CMake
|
||||
uses: lukka/get-cmake@latest
|
||||
|
@ -251,13 +251,10 @@ endif()
|
||||
|
||||
# install gRPC Python files
|
||||
if(RESINSIGHT_GRPC_PYTHON_EXECUTABLE AND RESINSIGHT_GRPC_DOWNLOAD_PYTHON_MODULE)
|
||||
message(STATUS "Installing Python modules")
|
||||
message(STATUS "Installing Python modules (dev-requirements.txt)")
|
||||
add_custom_command(
|
||||
TARGET PipInstall
|
||||
COMMAND ${RESINSIGHT_GRPC_PYTHON_EXECUTABLE} ARGS -m pip install --user
|
||||
wheel setuptools pytest
|
||||
COMMAND ${RESINSIGHT_GRPC_PYTHON_EXECUTABLE} ARGS -m pip install --user
|
||||
grpcio-tools)
|
||||
COMMAND ${RESINSIGHT_GRPC_PYTHON_EXECUTABLE} ARGS -m pip install -r ${GRPC_PYTHON_SOURCE_PATH}/dev-requirements.txt --user )
|
||||
endif()
|
||||
|
||||
if(RESINSIGHT_GRPC_PYTHON_EXECUTABLE AND RESINSIGHT_GRPC_BUNDLE_PYTHON_MODULE)
|
||||
|
6
GrpcInterface/Python/dev-requirements.txt
Normal file
6
GrpcInterface/Python/dev-requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
grpcio
|
||||
grpcio-tools
|
||||
protobuf
|
||||
wheel
|
||||
typing-extensions
|
||||
pytest
|
Loading…
Reference in New Issue
Block a user