from setuptools import setup, Extension
import numpy, os

ext_modules = [
    Extension("asapo_producer", ["asapo_producer.cpp"],
              extra_objects=['lib/$<TARGET_FILE_NAME:asapo-producer>', '@CURL_LIBRARIES@'],
                       include_dirs=["include/common","include",numpy.get_include()],
                       extra_compile_args=@EXTRA_COMPILE_ARGS@,
                       extra_link_args=@EXTRA_LINK_ARGS@,
                       language="c++")
]

setup(
      name = os.environ.get('PACKAGE_PREFIX', '') + "asapo_producer",
      ext_modules = ext_modules,
      version = "@PYTHON_ASAPO_VERSION@",
      setup_requires=["numpy>=@NUMPY_VERSION@", "cython>=0.28"],
      install_requires=["numpy>=@NUMPY_VERSION@"]
      )
