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

musl/disable_test_yolov3_temporarily
Aurelius84 5 years ago committed by GitHub
parent bc902044a4
commit 71815637cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save