Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cpython-compat'
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 22, 2020
2 parents a9e1b1d + b6c00a6 commit a149ba2
Show file tree
Hide file tree
Showing 13 changed files with 663 additions and 19 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,9 @@ terkin-and-run: check-mcu-port
ratrack-and-run: check-mcu-port
$(MAKE) install-framework
$(MAKE) reset-device-attached

install-cpython:
.venv3/bin/pip3 install -r requirements-circuitpython.txt

run-cpython:
.venv3/bin/python src/main_cpython.py
23 changes: 23 additions & 0 deletions doc/cpython.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#############################
How to run Terkin on CPython?
#############################

Acquire 3rd-party packages::

make setup
rm -r dist-packages/collections dist-packages/types.py

Tests::

make setup-tests
apt-get install mosquitto
make test

Invoke::

# Create configuration.
cp src/settings.example.py src/settings.py

# Run src/main_cpython.py.
make install-cpython
make run-cpython
1 change: 1 addition & 0 deletions requirements-circuitpython.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
adafruit-circuitpython-bme280==2.4.1

0 comments on commit a149ba2

Please sign in to comment.