Skip to content

Commit bbcf13e

Browse files
committed
Update setup.py to layout change
1 parent 6878915 commit bbcf13e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ This creates a directory called docs containing the generated documentation.
2828

2929
Generate the Python code:
3030
```
31-
python -m grpc_tools.protoc -I proto --python_out . proto/polyprism/*.proto
31+
python -m grpc_tools.protoc -I . --python_out . org/polypheny/prism/*.proto
3232
```

setup.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
import os
2+
13
from distutils.core import setup
24

5+
version = os.getenv('version', '0.0').split('.')
6+
if len(version) != 2:
7+
raise Exception('Invalid version format')
8+
9+
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')
12+
313
setup(name='polyphenyprism',
414
version='0.1',
515
description='Protobuf files for Polypheny',
6-
packages=['polyprism'],
16+
packages=['org/polypheny/prism'],
717
install_requires=[
818
"protobuf==4.24.3",
919
],

0 commit comments

Comments
 (0)