diff --git a/python/MANIFEST b/python/MANIFEST new file mode 100644 index 0000000..dd7555a --- /dev/null +++ b/python/MANIFEST @@ -0,0 +1,3 @@ +# file GENERATED by distutils, do NOT edit +setup.py +spidriver.py diff --git a/python/go b/python/go new file mode 100755 index 0000000..3c4c78e --- /dev/null +++ b/python/go @@ -0,0 +1,12 @@ +set -e +python2 setup.py install --user +exit + +echo Python3: +python3 ./confirm.py 1 +echo Python2: +python2 ./confirm.py 1 + +# ./thrash.py 3 +./eve.py 9999 +python3 ./watch.py diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 0000000..96f23a5 --- /dev/null +++ b/python/setup.py @@ -0,0 +1,21 @@ +# coding=utf-8 +from setuptools import setup + +LONG = """\ +I2CDriver is a tool for controlling, monitoring and capturing I2C from your PC's USB port. It connects as a standard USB serial device, so there are no drivers to install.""" + +for l in open("i2cdriver.py", "rt"): + if l.startswith("__version__"): + exec(l) + +setup(name='i2cdriver', + version=__version__, + author='James Bowman', + author_email='jamesb@excamera.com', + url='http://i2cdriver.com', + description='I2CDriver is a desktop I2C interface', + long_description=LONG, + license='GPL', + py_modules=['i2cdriver'], + install_requires=['pyserial'] + )