-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
21 lines (20 loc) · 835 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from distutils.core import setup, Extension
setup(
name='AM2302-rpi',
version='1.1.2',
description='Drive an AM2302 temperature sensor with a raspberry pi.',
author='Cameron Little',
author_email='cameron@camlittle.com',
url='https://github.com/apexskier/AM2302',
py_modules=['am2302_rpi'],
ext_modules=[Extension(
'am2302_ths',
define_macros = [('BCM2708_PERI_BASE', '0x20000000'),
('GPIO_BASE', '(BCM2708_PERI_BASE + 0x200000)'),
('MAXTIMINGS', 100)],
sources=['am2302_ths.c'],
library_dirs=['/usr/local/lib'],
libraries=['bcm2835'],
include_dirs=['/usr/local/include']
)]
)