forked from EnhancedRadioDevices/HamShieldPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
24 lines (20 loc) · 805 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# setup.py
from setuptools import setup
import subprocess
#from distutils.core import setup, Extension
from distutils.core import Extension
# run make from here to build your interface
subprocess.call("make")
extension_mod = Extension("_HamShieldPy",
sources = ["HamShieldPy/_HamShieldPy_module.cc", "HamShieldPy/clib/src/HamShield.cpp", "HamShieldPy/clib/src/HamShield_comms.cpp"],
include_dirs = ["HamShieldPy", "HamShieldPy/clib/src"],
libraries = ["pthread", "wiringPi"])
setup(name="HamShieldPy",
version="0.0",
description="Raspberry Pi HamShield library",
url="https://github.com/EnhancedRadioDevices/HamShieldPy",
author="Morgan Redfield",
author_email="[email protected]",
packages=["HamShieldPy"],
ext_modules=[extension_mod],
)