File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,13 @@ if [[ ${MATRIX_PACKAGE_TYPE} == "libtorch" ]]; then
3
3
unzip libtorch.zip
4
4
else
5
5
# special case for Python 3.11
6
- if [ $MATRIX_PYTHON_VERSION == ' 3.11' ]; then
7
- export CPYTHON_VERSIONS=3.11.0
8
- sudo yum -y install openssl-devel libssl-dev bzip2-devel libffi-devel
9
- sudo yum -y groupinstall " Development Tools"
10
- export PYTHON_PATH=" /opt/_internal/cpython-3.11.0/bin"
11
- export PIP_PATH=" ${PYTHON_PATH} /pip"
12
- export PIP_INSTALLATION=" ${MATRIX_INSTALLATION/ pip3/ " $PIP_PATH " } "
13
- export WITH_OPENSSL=" /opt/openssl"
14
- ./common/install_cpython.sh
15
- eval ${PYTHON_PATH} /python --version
16
- eval ${PIP_INSTALLATION}
17
- eval ${PYTHON_PATH} /python ./test/smoke_test/smoke_test.py --package torchonly
6
+ if [[ ${MATRIX_PYTHON_VERSION} == ' 3.11' ]]; then
7
+ conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION}
8
+ conda activate ${ENV_NAME}
9
+ eval $MATRIX_INSTALLATION
10
+ python ./test/smoke_test/smoke_test.py --package torchonly
11
+ conda deactivate
12
+ conda env remove -n ${ENV_NAME}
18
13
else
19
14
20
15
# Special case Pypi installation package, only applicable to linux nightly CUDA 11.7 builds, wheel package
You can’t perform that action at this time.
0 commit comments