Skip to content

Commit

Permalink
Add version to setup.py, fix conda versioning issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Aug 16, 2022
1 parent 987df55 commit 3260f82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@
install_requires += ["scipy"]


# Get version
try:
from linear_operator.version import version
except Exception:
version = None


# Run the setup
setup(
name="linear_operator",
version=version,
description=(
"A linear operator implementation, primarily designed for finite-dimensional "
"positive definite operators (i.e. kernel matrices)."
Expand Down

0 comments on commit 3260f82

Please sign in to comment.