Skip to content

Commit

Permalink
Install h5py after tensorflow
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
  • Loading branch information
EnricoMi committed Dec 8, 2021
1 parent b22fa16 commit 5158adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/gen-workflow-ci.py
Expand Up @@ -503,8 +503,8 @@ def build_and_test_macos(id: str, name: str, needs: List[str], attempts: int = 3
f' python --version\n'
f'\n'
f' python -m pip install -U pip\n'
f' if [[ ${{TENSORFLOW}} == 1.* ]] || [[ ${{TENSORFLOW}} == 2.[012345].* ]]; then h5py="h5py<3"; fi\n'
f' pip install tensorflow==${{TENSORFLOW}} keras==${{KERAS}} ${{h5py:-}}\n'
f' pip install tensorflow==${{TENSORFLOW}} keras==${{KERAS}}\n'
f' if [[ ${{TENSORFLOW}} == 1.* ]] || [[ ${{TENSORFLOW}} == 2.[012345].* ]]; then pip install "h5py<3"; fi\n'
f' pip install torch==${{PYTORCH}} pytorch_lightning==${{PYTORCH_LIGHTNING}} torchvision==${{TORCHVISION}}\n'
f' pip install mxnet==${{MXNET}}\n'
f' HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITH_PYTORCH=1 HOROVOD_WITH_MXNET=1 pip install --no-cache-dir .[test]\n'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -3414,8 +3414,8 @@ jobs:
python --version
python -m pip install -U pip
if [[ ${TENSORFLOW} == 1.* ]] || [[ ${TENSORFLOW} == 2.[012345].* ]]; then h5py="h5py<3"; fi
pip install tensorflow==${TENSORFLOW} keras==${KERAS} ${h5py:-}
pip install tensorflow==${TENSORFLOW} keras==${KERAS}
if [[ ${TENSORFLOW} == 1.* ]] || [[ ${TENSORFLOW} == 2.[012345].* ]]; then pip install "h5py<3"; fi
pip install torch==${PYTORCH} pytorch_lightning==${PYTORCH_LIGHTNING} torchvision==${TORCHVISION}
pip install mxnet==${MXNET}
HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITH_PYTORCH=1 HOROVOD_WITH_MXNET=1 pip install --no-cache-dir .[test]
Expand Down

0 comments on commit 5158adb

Please sign in to comment.