Skip to content

Commit

Permalink
fix ci pip eror
Browse files Browse the repository at this point in the history
  • Loading branch information
fightfat committed Aug 22, 2024
1 parent 55be22a commit dccf2ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/distribute/ci_case_auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,11 @@ function before_hook_for_gpt() {
export https_proxy=${proxy}
if [[ $FLAGS_install_deps == 0 ]];then
echo -e "\033[31m ---- Install requirements for GPT auto cases \033[0m"
cp requirements.txt requirements_nlp.txt
sed -i '/paddlenlp/d' requirements.txt
python -m pip install -r requirements.txt --force-reinstall
sed -i '/paddlenlp/!d' requirements_nlp.txt
python -m pip install -r requirements_nlp.txt
python -m pip install -r $root_path/requirements.txt
python -m pip install -r $root_path/requirements-dev.txt
python -m pip install --no-cache-dir https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl --force-reinstall --no-dependencies
Expand Down
4 changes: 4 additions & 0 deletions scripts/distribute/ci_case_dy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ function before_hook_for_gpt() {
export https_proxy=${proxy}
if [[ $FLAGS_install_deps == 0 ]];then
echo -e "\033[31m ---- Install requirements for GPT dygraph cases \033[0m"
cp requirements.txt requirements_nlp.txt
sed -i '/paddlenlp/d' requirements.txt
python -m pip install -r requirements.txt --force-reinstall
sed -i '/paddlenlp/!d' requirements_nlp.txt
python -m pip install -r requirements_nlp.txt
python -m pip install -r $root_path/requirements.txt
python -m pip install -r $root_path/requirements-dev.txt
python -m pip install --no-cache-dir https://paddlenlp.bj.bcebos.com/wheels/paddlenlp-ci-py3-none-any.whl --force-reinstall --no-dependencies
Expand Down

0 comments on commit dccf2ff

Please sign in to comment.