File: setup.py

package info (click to toggle)
wreport 3.36-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,572 kB
  • sloc: cpp: 18,927; python: 583; sh: 78; makefile: 13
file content (39 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import Extension, setup
import subprocess


def pkg_config_flags(options):
    return [
        s for s in subprocess.check_output(['pkg-config'] + options + ['libwreport']).decode().strip().split(" ") if s
    ]


wreport_module = Extension(
    '_wreport',
    sources=[
        "common.cc", "varinfo.cc", "vartable.cc", "var.cc", "wreport.cc"
    ],
    language="c++",
    extra_compile_args=pkg_config_flags(["--cflags"]) + ["-std=c++11"],
    extra_link_args=pkg_config_flags(["--libs"]),
)

setup(
    name="wreport",
    version="3.3.0",
    author="Enrico Zini",
    author_email="enrico@enricozini.org",
    maintainer="Emanuele Di Giacomo",
    maintainer_email="edigiacomo@arpa.emr.it",
    description="C++ library for working with weather reports",
    long_description="C++ library for working with weather reports",
    url="http://github.com/arpa-simc/wreport",
    license="GPLv2+",
    py_modules=[],
    packages=['wreport'],
    data_files=[],
    zip_safe=False,
    include_package_data=True,
    exclude_package_data={},
    ext_modules=[wreport_module],
)