Skip to content

Commit 9dcd5db

Browse files
committed
Fix setup script
1 parent 768bb86 commit 9dcd5db

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
from setuptools import setup
44

5-
version = os.getenv('version', '0.0').split('.')
6-
if len(version) != 2:
7-
raise Exception('Invalid version format')
5+
version = os.getenv('version', '0.0')
6+
major, minor = version.split('.')
87

98
with open('org/polypheny/prism/version.py', 'w') as f:
10-
f.write(f'MAJOR_VERSION = {version[0]}\n')
11-
f.write(f'MINOR_VERSION = {version[1]}\n')
9+
f.write(f'MAJOR_VERSION = {major}\n')
10+
f.write(f'MINOR_VERSION = {minor}\n')
1211

1312
setup(name='polyphenyprism',
1413
version=version,

0 commit comments

Comments
 (0)