Skip to content

Commit 01ed383

Browse files
committed
fix deepmd-kit-cu11 again (deepmodeling#3403)
Fix deepmodeling#3168. deepmodeling#3172 didn't fix deepmodeling#3168. The environmental variable `SETUPTOOLS_SCM_PRETEND_VERSION` works. I don't know what's wrong with the previous one. In this PR, I deleted the `.git` directory for `deepmd-kit-cu11`, which will throw an error if it doesn't work. --------- Signed-off-by: Jinzhe Zeng <[email protected]> (cherry picked from commit bd79dec)
1 parent 2408b47 commit 01ed383

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build_wheel.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ jobs:
7777
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
7878
- run: |
7979
python -m pip install setuptools_scm
80-
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
80+
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION='+get_version())" >> $GITHUB_ENV
81+
rm -rf .git
8182
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
8283
- name: Build wheels
8384
uses: pypa/[email protected]

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ environment-pass = [
152152
"DP_VARIANT",
153153
"CUDA_VERSION",
154154
"DP_PKG_NAME",
155-
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11",
155+
"SETUPTOOLS_SCM_PRETEND_VERSION",
156156
]
157157
environment = { PIP_PREFER_BINARY="1", DP_LAMMPS_VERSION="stable_2Aug2023_update3", DP_ENABLE_IPI="1", MPI_HOME="/usr/lib64/mpich", PATH="/usr/lib64/mpich/bin:$PATH" }
158158
before-all = [

0 commit comments

Comments
 (0)