Skip to content

Commit 3260f82

Browse files
committed
Add version to setup.py, fix conda versioning issues
1 parent 987df55 commit 3260f82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@
3737
install_requires += ["scipy"]
3838

3939

40+
# Get version
41+
try:
42+
from linear_operator.version import version
43+
except Exception:
44+
version = None
45+
46+
4047
# Run the setup
4148
setup(
4249
name="linear_operator",
50+
version=version,
4351
description=(
4452
"A linear operator implementation, primarily designed for finite-dimensional "
4553
"positive definite operators (i.e. kernel matrices)."

0 commit comments

Comments
 (0)