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

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

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