fixing python version. allowing versions to execute even if no detector connected or in shared memory (#990)

This commit is contained in:
2024-09-30 17:10:20 +02:00
committed by GitHub
parent 6348ccd05b
commit 7fa5b5d70a
4 changed files with 134 additions and 46 deletions

View File

@ -10,7 +10,14 @@ import sys
from setuptools import setup, find_packages
from pybind11.setup_helpers import Pybind11Extension, build_ext
__version__ = os.environ.get('GIT_DESCRIBE_TAG', 'developer')
import subprocess
def get_git_tag():
try:
return subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0']).strip().decode('utf-8')
except subprocess.CalledProcessError:
return 'developer'
__version__ = get_git_tag()
def get_conda_path():