From ee5ee3a4a5b9d09219ff4c932a45c4a661778cd7 Mon Sep 17 00:00:00 2001 From: pzhokhov Date: Mon, 17 May 2021 16:19:33 -0700 Subject: [PATCH] fix build by disabling mujoco and moving to newer python patch versions (#2220) * reverting to older version of 3.6 python to test if the build is failing because of that * revert 3.7 to 3.7.3 for the build * revert python 3.8 version to 3.8.1 * do not install mujoco on 3.8 and 3.9 * enable mujoco for 3.7 * . * . * . * use regex to navigate python version dependent package installation * . * try only one python version at a time * switch to possibly more popular python tag for 3.6 * disable mujoco --- .travis.yml | 10 +++++----- py.Dockerfile | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5d73324ef4d..39414a29140 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,10 @@ python: services: - docker env: - - PY_VER=3.6.8 - - PY_VER=3.7.3 - - PY_VER=3.8.6 - - PY_VER=3.9.0 + - PY_VER=3.6.13 + - PY_VER=3.7.10 + - PY_VER=3.8.9 + - PY_VER=3.9.4 install: "" # so travis doesn't do pip install requirements.txt script: @@ -21,4 +21,4 @@ deploy: password: $TWINE_PASSWORD on: tags: true - condition: $PY_VER = 3.6.8 + condition: $PY_VER = 3.8.9 diff --git a/py.Dockerfile b/py.Dockerfile index 0acd1cfc23a..fb0900bb51d 100644 --- a/py.Dockerfile +++ b/py.Dockerfile @@ -21,7 +21,8 @@ COPY . /usr/local/gym/ WORKDIR /usr/local/gym/ # install all extras for python 3.6 and 3.7, and skip mujoco add-ons for 3.8 and 3.9 # as mujoco 1.50 does not seem to work with 3.8 and 3.9 -RUN bash -c "[[ $PYTHON_VER =~ 3\.[6-7]\.[0-9] ]] && pip install -e .[all] || pip install -e .[nomujoco]" +# RUN bash -c "[[ $PYTHON_VER =~ 3\.[6-7]\.[0-9] ]] && pip install -e .[all] || pip install -e .[nomujoco]" +RUN pip install -e .[nomujoco] ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"] CMD ["pytest","--forked"]