-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect version in advance before building deepmd-kit-cu11 (#3172)
Fix #3168. See: pypa/setuptools-scm#1006 (comment) --------- Signed-off-by: Jinzhe Zeng <[email protected]> (cherry picked from commit 5dfbb55)
- Loading branch information
1 parent
be43748
commit 29a0387
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,17 @@ jobs: | |
- uses: docker/setup-qemu-action@v3 | ||
name: Setup QEMU | ||
if: matrix.platform_id == 'manylinux_aarch64' && matrix.os == 'ubuntu-latest' | ||
# detect version in advance. See #3168 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
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 | ||
if: matrix.dp_pkg_name == 'deepmd-kit-cu11' | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters