path.insert(0, SETUP_DIR) import ez_setup path.pop(0) ez_setup.use_setuptools() from setuptools import setup, find_packages # Import version to get the version string path.insert(0, join(SETUP_DIR, 'mminte')) from version import get_version, update_release_version path.pop(0) version = get_version(pep440=True) # If building something for distribution, ensure the VERSION # file is up to date if 'sdist' in argv or 'bdist_wheel' in argv: update_release_version() # @todo extra with jupyter dependency? requirements = [ 'six', 'pandas>=0.18.0', 'cobra>=0.5.4' ] # Begin constructing arguments for building package. setup_kwargs = {} try: with open('README.rst') as handle: readme = handle.read()
# http://bugs.python.org/issue15881#msg170215 try: import multiprocessing except: None # import version to get the version string path.insert(0, join(SETUP_DIR, "cobra")) from version import get_version, update_release_version path.pop(0) version = get_version(pep440=True) # If building something for distribution, ensure the VERSION # file is up to date if "sdist" in argv or "bdist_wheel" in argv: update_release_version() # cython is optional for building. The c file can be used directly. However, # for certain functions, the c file must be generated, which requires cython. try: from Cython.Build import cythonize from distutils.version import StrictVersion import Cython try: cython_version = StrictVersion(Cython.__version__) except ValueError: raise ImportError("Cython version not parseable") else: if cython_version < StrictVersion("0.21"): raise ImportError("Cython version too old to use") except ImportError: