Skip to content

Commit 18af1a0

Browse files
committed
This fixes it? Get __version__ in setup.py in a different way
1 parent 7664b4a commit 18af1a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ def get_long_description():
1515

1616

1717
# get version
18-
sys.path.insert(0, os.path.abspath("../"))
19-
from causalpy.version import __version__
18+
# sys.path.insert(0, os.path.abspath("../"))
19+
# from causalpy.version import __version__
20+
exec(open("causalpy/version.py").read())
2021

2122
with open(REQUIREMENTS_FILE) as f:
2223
install_reqs = f.read().splitlines()

0 commit comments

Comments
 (0)