diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 467969f7a2..4d7a1e91d7 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -84,7 +84,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/cibuildwheel@v2.16 diff --git a/pyproject.toml b/pyproject.toml index 3ee65865f1..0d1471c2c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,7 +153,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 = [