Skip to content

Commit

Permalink
Attempted codegen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Aug 16, 2017
1 parent ceaa1fb commit b5e7601
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
#!/usr/bin/env python

import os, glob
import setuptools.command.build_py
from setuptools import setup, find_packages

install_requires = [line.rstrip() for line in open(os.path.join(os.path.dirname(__file__), "requirements.txt"))]

class Build(setuptools.command.build_py.build_py):
def run(self):
try:
from hca.api import autogenerated
except ImportError:
import hca.regenerate_api
hca.regenerate_api.generate_python_bindings()
from hca.api import autogenerated
setuptools.command.build_py.build_py.run(self)


setup(
name="hca",
version="0.9.5",
Expand Down Expand Up @@ -36,5 +48,8 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules'
]
],
cmdclass={
'build_py': Build
}
)

0 comments on commit b5e7601

Please sign in to comment.