From 234b28df73c192aa24e688fda75162df8ba60439 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Sat, 16 Nov 2024 20:08:33 -0700 Subject: [PATCH] MNT: update dynamic versioning command in meson project --- .github/workflows/wheels.yml | 2 ++ meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 8d011c3..53f64ba 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -40,6 +40,8 @@ jobs: shell: bash steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Download source files run: | diff --git a/meson.build b/meson.build index 0c88863..885d127 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'pymsis', 'c', # Note that the git commit hash cannot be added dynamically here - version: run_command(find_program('python3'), '-m', 'setuptools_scm', check: true).stdout().strip(), + version: run_command('python', '-m', 'setuptools_scm', check: true).stdout().strip(), license: 'MIT', meson_version: '>=1.2.99', default_options: [