Skip to content
Snippets Groups Projects
Commit 7a7395ca authored by Tom Vander Aa's avatar Tom Vander Aa
Browse files

ENH: call generate.sh from setup.py

parent 9fbdbdd4
No related branches found
No related tags found
No related merge requests found
Pipeline #
#!/usr/bin/env python #!/usr/bin/env python
from distutils.command.build_py import build_py as _build_py
from distutils.core import setup from distutils.core import setup
import os import os
...@@ -10,9 +11,20 @@ def read_version(): ...@@ -10,9 +11,20 @@ def read_version():
LOOM_VERSION=read_version() LOOM_VERSION=read_version()
print("LOOM_VERSION =", LOOM_VERSION) print("LOOM_VERSION =", LOOM_VERSION)
class build_protoc(_build_py):
"""Also calls protoc"""
def run(self):
os.system("sh ./generate.sh")
_build_py.run(self)
setup(name='loom', setup(name='loom',
version=LOOM_VERSION, version=LOOM_VERSION,
description='Python interface for Loom - workflow system', description='Python interface for Loom - workflow system',
author='Loom team', author='Loom team',
url='', url='',
packages=['loom']) packages=['loom'],
cmdclass={'build_py': build_protoc}
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment