Metadata-Version: 1.1
Name: build-capi
Version: 1.1.10
Summary: Build and distribute C/C++ static libraries
Home-page: http://github.com/glimix/build-capi
Author: Danilo Horta
Author-email: horta@ebi.ac.uk
License: MIT
Description: build-capi
        ==========
        
        |PyPIl| |PyPIv| |Anaconda-Server Badge|
        
        Build and distribute C/C++ static libraries via Python packages.
        
        Getting Started
        ---------------
        
        You can have a ``setup.py`` similar to
        
        .. code:: python
        
            from os.path import join
            from setuptools import setup
        
            def get_lib():
              from build_capi import CApiLib
        
              mylib = CApiLib('pkg_name.lib.nmylib',
                              sources=[join('pkg_name', 'sources', 'example.c')],
                              include_dirs=[join('pkg_name', 'include')])
        
            setup(
                  name='pkg_name',
                  # ...
                  setup_requires=['build_capi'],
                  capi_libs=[get_lib],
                  include_package_data=True,
                  data_files=[(join('pkg_name', 'include'), join('pkg_name', 'include',
                                                                 'example.h'))],
                  package_data={'': [join('pkg_name', 'lib', '*.*')]})
        
        and then have a ``pkg_name/__init__.py``
        
        .. code:: python
        
            def get_include():
              import pkg_name
              from os.path import join, dirname
              return join(dirname(pkg_name.__file__), 'include')
        
            def get_lib():
              import pkg_name
              from os.path import join, dirname
              return join(dirname(pkg_name.__file__), 'lib')
        
        Please, refer to
        `build\_capi/example/prj\_name <build_capi/example/prj_name>`__ for a
        minimal example of project using ``build_capi``.
        
        Install
        -------
        
        The recommended way of installing it is via
        `conda <http://conda.pydata.org/docs/index.html>`__
        
        .. code:: bash
        
            conda install -c conda-forge build-capi
        
        An alternative way would be via pip
        
        .. code:: bash
        
            pip install build-capi
        
        Authors
        -------
        
        -  **Danilo Horta** - https://github.com/Horta
        
        License
        -------
        
        This project is licensed under the MIT License - see the
        `LICENSE <LICENSE>`__ file for details
        
        .. |PyPIl| image:: https://img.shields.io/pypi/l/build-capi.svg?style=flat-square
           :target: https://pypi.python.org/pypi/build-capi/
        .. |PyPIv| image:: https://img.shields.io/pypi/v/build-capi.svg?style=flat-square
           :target: https://pypi.python.org/pypi/build-capi/
        .. |Anaconda-Server Badge| image:: https://anaconda.org/conda-forge/build-capi/badges/version.svg
           :target: https://anaconda.org/conda-forge/build-capi
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: OS Independent
