Skip to content

Commit

Permalink
Determine version in setup.py from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Nov 16, 2023
1 parent 2ad3f31 commit 475ce4e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 475ce4e

Please sign in to comment.