예제 #1
0
    --shared : use pkgconfig and cython (for debian devs and common users)
    --pybind : use pybind alternative (not tested)
    --auto (default) : try static, shared and cython, fails if it can't
"""

from setuptools import setup, find_packages
from distutils.extension import Extension
from pyozw_version import pyozw_version
from pyozw_setup import LOCAL_OPENZWAVE, SETUP_DIR
from pyozw_setup import current_template, parse_template, get_dirs, data_files_config, install_requires
from pyozw_setup import Template, DevTemplate, GitTemplate, EmbedTemplate, SharedTemplate
from pyozw_setup import bdist_egg, build_openzwave, openzwave_config, build, clean, develop, install

print(current_template)
print(current_template.ctx)
print(install_requires())

setup(
    name='libopenzwave',
    author='Sébastien GALLET aka bibi2100 <*****@*****.**>',
    author_email='*****@*****.**',
    version=pyozw_version,
    #~ scripts=['src-lib/scripts/pyozw_check'],
    zip_safe=False,
    url='https://github.com/OpenZWave/python-openzwave',
    cmdclass={
        'build_ext': current_template.build_ext,
        'bdist_egg': bdist_egg,
        'build': build,
        'build_openzwave': build_openzwave,
        'openzwave_config': openzwave_config,
예제 #2
0
        for d in dirs:
            rd = d.replace(source+os.sep, "", 1)
            ret.extend(data_files_config(os.path.join(target,rd), \
                os.path.join(source,rd), pattern))
    return ret

data_files = data_files_config('share/doc/python-openzwave','docs/_build/html','*.html')
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','*.js'))
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','inv'))
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','*.txt'))
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','*.png'))
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','*.css'))
data_files.extend(data_files_config('share/doc/python-openzwave','docs/_build/html','*.gif'))

setup(
  name = 'openzwave',
  author='Sébastien GALLET aka bibi2100 <*****@*****.**>',
  author_email='*****@*****.**',
  url='https://github.com/OpenZWave/python-openzwave',
  version = pyozw_version,
  zip_safe = False,
  package_dir = {'' : 'src-api'},
  #packages = find_packages(),
  #packages = ['openzwave'],
  packages = find_packages('src-api', exclude=["scripts"]),
  #The following line install documentation in share/python-openzwave
  #data_files = data_files,
  #recommend : "pysqlite >= 2.6",
  install_requires=install_requires()+[ 'libopenzwave == %s' % pyozw_version ]
)