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