初始化提交
This commit is contained in:
17
arduino-cli/libraries/RF24/pyRF24/pyRF24Mesh/setup.py
Normal file
17
arduino-cli/libraries/RF24/pyRF24/pyRF24Mesh/setup.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from distutils.core import setup, Extension
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
BOOST_LIB = 'boost_python3'
|
||||
else:
|
||||
BOOST_LIB = 'boost_python'
|
||||
|
||||
module_RF24Mesh = Extension('RF24Mesh',
|
||||
libraries=['rf24mesh', 'rf24network', BOOST_LIB],
|
||||
sources=['pyRF24Mesh.cpp'])
|
||||
|
||||
setup(name='RF24Mesh',
|
||||
version='1.0',
|
||||
ext_modules=[module_RF24Mesh])
|
||||
Reference in New Issue
Block a user