-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·34 lines (31 loc) · 1.03 KB
/
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
from setuptools import setup, Extension, find_packages
import glob
import datetime
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
]
pinctrl_files = glob.glob('libgpio/*.c')
softpwm_files = glob.glob('libgpio/*.c')
with open('version', 'r') as file:
version_str = file.read().strip()
setup(
name="gpioc",
version=version_str,
author="sc-bin",
author_email="[email protected]",
description="A module to control GPIO",
platforms=['manylinux'],
long_description = open('README_PY.md').read(),
long_description_content_type='text/markdown',
license = 'MIT',
url="https://github.com/sc-bin/gpioc",
packages=find_packages(),
ext_modules = [
Extension('gpioc._softpwm', sources=softpwm_files),
Extension('gpioc._pinctrl', sources=pinctrl_files),
],
)