未验证 提交 71815637 编写于 作者: A Aurelius84 提交者: GitHub

Move gym into unittest/requirements.txt (#29149)

上级 bc902044
...@@ -115,7 +115,6 @@ where python ...@@ -115,7 +115,6 @@ where python
where pip where pip
pip install --upgrade pip --user pip install --upgrade pip --user
pip install wheel --user pip install wheel --user
pip install gym --user
pip install -U -r %work_dir%\python\requirements.txt --user pip install -U -r %work_dir%\python\requirements.txt --user
pip install -U -r %work_dir%\python\unittest_py\requirements.txt --user pip install -U -r %work_dir%\python\unittest_py\requirements.txt --user
if %ERRORLEVEL% NEQ 0 ( if %ERRORLEVEL% NEQ 0 (
......
...@@ -67,9 +67,6 @@ function cmake_base() { ...@@ -67,9 +67,6 @@ function cmake_base() {
# Delete previous built whl packages # Delete previous built whl packages
rm -rf python/dist 2>/dev/null || true rm -rf python/dist 2>/dev/null || true
# `gym` is only used in unittest, it's not suitable to add in requirements.txt.
# Add it dynamically.
echo "gym" >> ${PADDLE_ROOT}/python/requirements.txt
# Support build for all python versions, currently # Support build for all python versions, currently
# including cp27-cp27m and cp27-cp27mu. # including cp27-cp27m and cp27-cp27mu.
PYTHON_FLAGS="" PYTHON_FLAGS=""
...@@ -137,8 +134,6 @@ function cmake_base() { ...@@ -137,8 +134,6 @@ function cmake_base() {
exit 1 exit 1
fi fi
fi fi
# delete `gym` to avoid modifying requirements.txt in *.whl
sed -i .bak "/^gym$/d" ${PADDLE_ROOT}/python/requirements.txt
else else
if [ "$1" != "" ]; then if [ "$1" != "" ]; then
echo "using python abi: $1" echo "using python abi: $1"
...@@ -202,8 +197,6 @@ function cmake_base() { ...@@ -202,8 +197,6 @@ function cmake_base() {
else else
pip install -r ${PADDLE_ROOT}/python/requirements.txt pip install -r ${PADDLE_ROOT}/python/requirements.txt
fi fi
# delete `gym` to avoid modifying requirements.txt in *.whl
sed -i "/^gym$/d" ${PADDLE_ROOT}/python/requirements.txt
fi fi
if [ "$SYSTEM" == "Darwin" ]; then if [ "$SYSTEM" == "Darwin" ]; then
......
...@@ -2,6 +2,7 @@ PyGithub ...@@ -2,6 +2,7 @@ PyGithub
coverage coverage
pycrypto ; platform_system != "Windows" pycrypto ; platform_system != "Windows"
mock mock
gym
opencv-python<=4.2.0.32 opencv-python<=4.2.0.32
visualdl ; python_version>="3.5" visualdl ; python_version>="3.5"
paddle2onnx>=0.4 paddle2onnx>=0.4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册