Commit f6364a3b authored by limm's avatar limm
Browse files

Merge branch 'cherry-pick-a4922aeb' into 'v2.1.0-fastpt'

add jenkins.sh

See merge request !5
parents 27fcb6ce d7432e48
#!/bin/bash
pip install -r requirements.txt
set -e
source /opt/dtk/env.sh
export FORCE_CUDA=1
source /usr/local/bin/fastpt -C
echo "开始编译组件mmcv"
MMCV_WITH_OPS=1 python3 setup.py -v bdist_wheel
echo "组件mmcv编译完成"
ls dist/
pip install dist/*.whl
pip install dist/*.whl --force-reinstall --no-deps
echo "组件mmcv安装完成"
echo "开始mmcv单元测试"
if command -v pytest &> /dev/null; then
echo "pytest 已安装,版本: $(pytest --version)"
# 跳过安装
else
echo "pytest 未安装,正在安装..."
# 使用 pip 安装 (最常见)
pip install pytest
fi
pytest -vs ./tests
......@@ -6,5 +6,4 @@ opencv-python
sphinx==4.0.2
sphinx-copybutton
sphinx_markdown_tables>=0.0.16
torch
urllib3<2.0.0
addict
mmengine>=0.3.0
numpy
numpy==1.24.3
packaging
Pillow
pyyaml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment