Skip to content

Commit

Permalink
fix deepmd-kit-cu11 again (#3403)
Browse files Browse the repository at this point in the history
Fix #3168.

#3172 didn't fix #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)
  • Loading branch information
njzjz committed Apr 6, 2024
1 parent be311e0 commit 308d9f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs:
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
- run: |
python -m pip install setuptools_scm
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION='+get_version())" >> $GITHUB_ENV
rm -rf .git
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
- name: Build wheels
uses: pypa/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ environment-pass = [
"DP_VARIANT",
"CUDA_VERSION",
"DP_PKG_NAME",
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11",
"SETUPTOOLS_SCM_PRETEND_VERSION",
]
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" }
before-all = [
Expand Down

0 comments on commit 308d9f2

Please sign in to comment.