-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathsetup.py
38 lines (31 loc) · 927 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
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
"""
setup.py file for pylibi2c
"""
import os
from distutils.core import setup, Extension
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
INC_DIR = os.path.join(THIS_DIR, 'include')
VERSION = open('VERSION').read().strip()
pylibi2c_module = Extension('pylibi2c',
sources=['src/i2c.c', 'src/pyi2c.c'],
extra_compile_args=['-DLIBI2C_VERSION="' + VERSION + '"'],
include_dirs=[INC_DIR],
)
setup(
name='pylibi2c',
version=VERSION,
license='MIT',
author='Amaork',
author_email="amaork@gmail.com",
url='https://github.com/amaork/libi2c',
description="Linux userspace i2c operation library",
long_description=open('README.md').read(),
ext_modules=[pylibi2c_module],
py_modules=["pylibi2c"],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)