rpirena/spidev_py.py

14 lines
460 B
Python
Raw Permalink Normal View History

#! /usr/bin/python3
from distutils.core import setup, Extension
m_spidev = Extension('spidev',
sources = ['spidev_py.c'],
define_macros = [("DEBUG", "1")],
extra_compile_args=['-std=c99', '-Wno-parentheses', '-Wno-pointer-to-int-cast'],
)
setup (name = 'spidev',
version = '1.1',
description = 'spidev transfers',
ext_modules = [m_spidev],
)