diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/Makefile | 14 | ||||
-rw-r--r-- | python/birdscan/__init__.py | 0 | ||||
-rw-r--r-- | python/birdscan/__main__.py | 11 | ||||
-rw-r--r-- | python/setup.py | 15 |
4 files changed, 40 insertions, 0 deletions
diff --git a/python/Makefile b/python/Makefile new file mode 100644 index 0000000..c3a3660 --- /dev/null +++ b/python/Makefile @@ -0,0 +1,14 @@ +# vim: shiftwidth=4 tabstop=4 noexpandtab + +DESTDIR="" # leave empty for the current system or provide a fakeroot here + +.PHONY: all clean install + +all: + python setup.py build + +clean: + rm -rf build + +install: all + python setup.py install --root=$(DESTDIR) --optimize=1 --skip-build diff --git a/python/birdscan/__init__.py b/python/birdscan/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/python/birdscan/__init__.py diff --git a/python/birdscan/__main__.py b/python/birdscan/__main__.py new file mode 100644 index 0000000..34eb665 --- /dev/null +++ b/python/birdscan/__main__.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 +# vim: shiftwidth=4 tabstop=4 expandtab + + +import time + + +while True: + print("Active!") + time.sleep(2) + diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 0000000..0cfafbd --- /dev/null +++ b/python/setup.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 +# vim: shiftwidth=4 tabstop=4 expandtab + + +from distutils.core import setup + +setup(name="birdscan", + version="0.0.1", + description="A software to take nice pictures of birds with a Raspberry Pi Camera", + author="xengineering", + author_email="mail2xengineering@protonmail.com", + url="https://xengineering.eu", + packages=["birdscan"], +) + |