From 475ce4e155cc1f4e47904d34df160f7b5036c277 Mon Sep 17 00:00:00 2001 From: haasad Date: Thu, 16 Nov 2023 22:25:48 +0100 Subject: [PATCH] Determine version in setup.py from environment variables --- setup.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e19c9a7..3179b19 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,17 @@ +import os from setuptools import setup + +if 'VERSION' in os.environ: + version = os.environ['VERSION'] +elif 'PKG_VERSION' in os.environ: + version = os.environ['PKG_VERSION'] +else: + version = os.environ.get('GIT_DESCRIBE_TAG', '0.0.0') + setup( name='pypardiso', - version="0.4.3", + version=version, packages=['pypardiso'], install_requires=['mkl', 'numpy', 'scipy'], author="Adrian Haas",