Skip to content

Commit

Permalink
Correcting how we call setuptools_scm so how our config is loaded. RE:n…
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Mar 6, 2025
1 parent 6e3d9e5 commit afdd274
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions codesigning/enqueue-current-installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
import os
import platform
import subprocess
import sys

import setuptools_scm
# setuptools_scm is required, but not directly imported here


def main():
version = setuptools_scm.get_version()
# Calling this from the CLI makes sure that our pyproject.toml config is
# parsed, which isn't the case by default when setuptools_scm.version() is
# called.
version = subprocess.run(
[sys.executable, '-m', 'setuptools_scm'],
capture_output=True, check=True).stdout.decode('utf-8').strip()

this_dir = os.path.dirname(__file__)
repo_root = os.path.dirname(this_dir)
Expand Down

0 comments on commit afdd274

Please sign in to comment.