File tree 2 files changed +12
-4
lines changed 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
# SPHINX_CUDA_BINDINGS_VER is used to create a subdir under build/html
6
- # (the Makefile file for sphinx-build also honors it if defined)
6
+ # (the Makefile file for sphinx-build also honors it if defined).
7
+ # If there's a post release (ex: .post1) we don't want it to show up in the
8
+ # version selector or directory structure.
7
9
if [[ -z " ${SPHINX_CUDA_BINDINGS_VER} " ]]; then
8
- export SPHINX_CUDA_BINDINGS_VER=$( python -c " from importlib.metadata import version; print(version('cuda-python'))" \
10
+ export SPHINX_CUDA_BINDINGS_VER=$( python -c " from importlib.metadata import version; \
11
+ ver = '.'.join(str(version('cuda-python')).split('.')[:3]); \
12
+ print(ver)" \
9
13
| awk -F' +' ' {print $1}' )
10
14
fi
11
15
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
# SPHINX_CUDA_PYTHON_VER is used to create a subdir under build/html
6
- # (the Makefile file for sphinx-build also honors it if defined)
6
+ # (the Makefile file for sphinx-build also honors it if defined).
7
+ # If there's a post release (ex: .post1) we don't want it to show up in the
8
+ # version selector or directory structure.
7
9
if [[ -z " ${SPHINX_CUDA_PYTHON_VER} " ]]; then
8
- export SPHINX_CUDA_PYTHON_VER=$( python -c " from importlib.metadata import version; print(version('cuda-python'))" \
10
+ export SPHINX_CUDA_PYTHON_VER=$( python -c " from importlib.metadata import version; \
11
+ ver = '.'.join(str(version('cuda-python')).split('.')[:3]); \
12
+ print(ver)" \
9
13
| awk -F' +' ' {print $1}' )
10
14
fi
11
15
You can’t perform that action at this time.
0 commit comments