Skip to content

Commit

Permalink
FIX: python module installation
Browse files Browse the repository at this point in the history
Use setuptools find_packages() to install submodules recursively
  • Loading branch information
Vojtech Cima authored and spirali committed Jun 9, 2017
1 parent de0fc66 commit 4871094
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions python/setup.py
@@ -1,14 +1,18 @@
#!/usr/bin/env python

from distutils.command.build_py import build_py as _build_py
from distutils.core import setup
from setuptools.command.build_py import build_py as _build_py
from setuptools import setup, find_packages


import os


def read_version():
with open(os.path.dirname(__file__) + "../version") as f:
return f.readline().rstrip()

LOOM_VERSION=read_version()

LOOM_VERSION = read_version()
print("LOOM_VERSION =", LOOM_VERSION)


Expand All @@ -19,12 +23,11 @@ def run(self):
_build_py.run(self)



setup(name='loom',
version=LOOM_VERSION,
description='Python interface for Loom - workflow system',
author='Loom team',
url='',
packages=['loom'],
packages=find_packages(),
cmdclass={'build_py': build_protoc}
)

0 comments on commit 4871094

Please sign in to comment.