from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools.command.build_ext import build_ext as _build_ext
# from Cython.Build import cythonize
import os
import builtins

VERSION = '0.9.5'

PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))


with open(os.path.join(PACKAGE_DIR, "README.md"), "r") as fh:
    long_description = fh.read()


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """
    def finalize_options(self):
        _build_ext.finalize_options(self)
        # Prevent numpy from thinking it is still in its setup process:
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


source_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'waterz')
include_dirs = [
    source_dir,
    os.path.join(source_dir, 'backend'),
    # os.path.dirname(get_python_inc()),
    # numpy.get_include(),
]
extensions = [
    Extension(
        'waterz.evaluate',
        sources=['waterz/evaluate.cpp', 'waterz/frontend_evaluate.cpp'],
        include_dirs=include_dirs,
        language='c++',
        extra_link_args=['-std=c++11'],
        extra_compile_args=['-std=c++11', '-w'])
]


setup(
    name='waterz',
    version=VERSION,
    description='Simple watershed and agglomeration for affinity graphs.',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/funkey/waterz',
    author='Jan Funke, Jingpeng Wu',
    author_email='jfunke@iri.upc.edu',
    license='MIT',
    cmdclass={'build_ext': build_ext},
    setup_requires=['numpy'],
    install_requires=['numpy', 'cython'],
    tests_require=['pytest'],
    packages=find_packages(),
    package_data={
        '': ['*.pyx', '*.hpp', '*.cpp', '*.h', '*.py', 'backend/*.hpp'],
        'backend': ['*.hpp']
    },
    zip_safe=False,
    ext_modules=extensions,
    classifiers=[
        "Programming Language :: Python :: 3",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    requires_python=">=3.6, <4",
)

756e74672f13017f841b98f6e4257b556a988f84
<mask token>


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """

    def finalize_options(self):
        _build_ext.finalize_options(self)
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


<mask token>

<mask token>
with open(os.path.join(PACKAGE_DIR, 'README.md'), 'r') as fh:
    long_description = fh.read()


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """

    def finalize_options(self):
        _build_ext.finalize_options(self)
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


<mask token>
setup(name='waterz', version=VERSION, description=
    'Simple watershed and agglomeration for affinity graphs.',
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/funkey/waterz', author=
    'Jan Funke, Jingpeng Wu', author_email='jfunke@iri.upc.edu', license=
    'MIT', cmdclass={'build_ext': build_ext}, setup_requires=['numpy'],
    install_requires=['numpy', 'cython'], tests_require=['pytest'],
    packages=find_packages(), package_data={'': ['*.pyx', '*.hpp', '*.cpp',
    '*.h', '*.py', 'backend/*.hpp'], 'backend': ['*.hpp']}, zip_safe=False,
    ext_modules=extensions, classifiers=[
    'Programming Language :: Python :: 3',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent'], requires_python='>=3.6, <4')

<mask token>
VERSION = '0.9.5'
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(PACKAGE_DIR, 'README.md'), 'r') as fh:
    long_description = fh.read()


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """

    def finalize_options(self):
        _build_ext.finalize_options(self)
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


source_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'waterz')
include_dirs = [source_dir, os.path.join(source_dir, 'backend')]
extensions = [Extension('waterz.evaluate', sources=['waterz/evaluate.cpp',
    'waterz/frontend_evaluate.cpp'], include_dirs=include_dirs, language=
    'c++', extra_link_args=['-std=c++11'], extra_compile_args=['-std=c++11',
    '-w'])]
setup(name='waterz', version=VERSION, description=
    'Simple watershed and agglomeration for affinity graphs.',
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/funkey/waterz', author=
    'Jan Funke, Jingpeng Wu', author_email='jfunke@iri.upc.edu', license=
    'MIT', cmdclass={'build_ext': build_ext}, setup_requires=['numpy'],
    install_requires=['numpy', 'cython'], tests_require=['pytest'],
    packages=find_packages(), package_data={'': ['*.pyx', '*.hpp', '*.cpp',
    '*.h', '*.py', 'backend/*.hpp'], 'backend': ['*.hpp']}, zip_safe=False,
    ext_modules=extensions, classifiers=[
    'Programming Language :: Python :: 3',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent'], requires_python='>=3.6, <4')

from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools.command.build_ext import build_ext as _build_ext
import os
import builtins
VERSION = '0.9.5'
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(PACKAGE_DIR, 'README.md'), 'r') as fh:
    long_description = fh.read()


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """

    def finalize_options(self):
        _build_ext.finalize_options(self)
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


source_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'waterz')
include_dirs = [source_dir, os.path.join(source_dir, 'backend')]
extensions = [Extension('waterz.evaluate', sources=['waterz/evaluate.cpp',
    'waterz/frontend_evaluate.cpp'], include_dirs=include_dirs, language=
    'c++', extra_link_args=['-std=c++11'], extra_compile_args=['-std=c++11',
    '-w'])]
setup(name='waterz', version=VERSION, description=
    'Simple watershed and agglomeration for affinity graphs.',
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/funkey/waterz', author=
    'Jan Funke, Jingpeng Wu', author_email='jfunke@iri.upc.edu', license=
    'MIT', cmdclass={'build_ext': build_ext}, setup_requires=['numpy'],
    install_requires=['numpy', 'cython'], tests_require=['pytest'],
    packages=find_packages(), package_data={'': ['*.pyx', '*.hpp', '*.cpp',
    '*.h', '*.py', 'backend/*.hpp'], 'backend': ['*.hpp']}, zip_safe=False,
    ext_modules=extensions, classifiers=[
    'Programming Language :: Python :: 3',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent'], requires_python='>=3.6, <4')

from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools.command.build_ext import build_ext as _build_ext
# from Cython.Build import cythonize
import os
import builtins

VERSION = '0.9.5'

PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))


with open(os.path.join(PACKAGE_DIR, "README.md"), "r") as fh:
    long_description = fh.read()


class build_ext(_build_ext):
    """We assume no numpy at the begining
    https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
    """
    def finalize_options(self):
        _build_ext.finalize_options(self)
        # Prevent numpy from thinking it is still in its setup process:
        builtins.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())


source_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'waterz')
include_dirs = [
    source_dir,
    os.path.join(source_dir, 'backend'),
    # os.path.dirname(get_python_inc()),
    # numpy.get_include(),
]
extensions = [
    Extension(
        'waterz.evaluate',
        sources=['waterz/evaluate.cpp', 'waterz/frontend_evaluate.cpp'],
        include_dirs=include_dirs,
        language='c++',
        extra_link_args=['-std=c++11'],
        extra_compile_args=['-std=c++11', '-w'])
]


setup(
    name='waterz',
    version=VERSION,
    description='Simple watershed and agglomeration for affinity graphs.',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/funkey/waterz',
    author='Jan Funke, Jingpeng Wu',
    author_email='jfunke@iri.upc.edu',
    license='MIT',
    cmdclass={'build_ext': build_ext},
    setup_requires=['numpy'],
    install_requires=['numpy', 'cython'],
    tests_require=['pytest'],
    packages=find_packages(),
    package_data={
        '': ['*.pyx', '*.hpp', '*.cpp', '*.h', '*.py', 'backend/*.hpp'],
        'backend': ['*.hpp']
    },
    zip_safe=False,
    ext_modules=extensions,
    classifiers=[
        "Programming Language :: Python :: 3",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    requires_python=">=3.6, <4",
)
