-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (37 loc) · 980 Bytes
/
setup.py
File metadata and controls
40 lines (37 loc) · 980 Bytes
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
40
from setuptools import setup, Extension
import numpy
VERSION = "2.5.0"
pyuhd = Extension(
"pyuhd",
define_macros=[
("PYUHD_VERSION", '"{}"'.format(VERSION)),
],
include_dirs=[
"uhd/",
"uhd/auto_gen/",
numpy.get_include(),
],
libraries=["uhd"],
extra_compile_args=["-std=c++11"],
sources=[
"uhd/uhd.cpp",
"uhd/uhd_usrp.cpp",
"uhd/uhd_rx.cpp",
"uhd/uhd_tx.cpp",
"uhd/uhd_timespec.cpp",
],
)
setup(
name="pyuhd",
version=VERSION,
description="A Python 3 C++ extension to facilitate development with USRP "
"hardware.",
install_requires=["numpy"],
ext_modules=[pyuhd],
author="Christian Hahn",
author_email="christianhahn09@gmail.com",
long_description="python-uhd is a Python 3 C++ extension to facilitate "
"development with USRP hardware from Python.",
url="https://github.com/christian-hahn/python-uhd",
license="MIT",
)