File: setup.py

package info (click to toggle)
argus-clients 1%3A5.0.2%2Bgit20250321.41f65e2-2
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 45,848 kB
  • sloc: ansic: 175,393; perl: 4,405; sh: 4,064; makefile: 2,520; lex: 517; yacc: 433; python: 62
file content (28 lines) | stat: -rw-r--r-- 939 bytes parent folder | download
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
#!/usr/bin/env python

"""
setup.py file for SWIG argusPython
"""

from distutils.core import setup, Extension
import os
import sysconfig
import numpy as np

argusPython = Extension('_argusPython',
       extra_compile_args = ['-fPIC','-Wno-deprecated-declarations'], 
       sources=['argusPython_wrap.c', 'argusPython.c'],
       include_dirs=['../include', '/usr/local/include', np.get_include()],
       libraries=['m','z', 'curl','dl'],
       extra_link_args=['../lib/argus_common.a','../lib/argus_client.a','../lib/argus_parse.a']
    )

setup (name = 'argusPython',
       version = '0.2',
       url="https://github.com/openargus/argusPython/",
       author  = 'Carter Bullard',
       author_email='carter@qosient.com',
       description = 'Read, process and time functions from argus client library',
       ext_modules = [argusPython, Extension('_argusPython', ['argusPython.c'])],
       py_modules = ["argusPython"],
    )