From 23c345176abf2ec1625002d12f287eb2f8db9b80 Mon Sep 17 00:00:00 2001 From: clach04 Date: Sat, 22 Jul 2023 12:59:27 -0700 Subject: [PATCH] Working native Windows instructions NOTE allows "logs" operation, native Windows support is not a goal. --- README.md | 16 ++++++++++++++++ requirements_py27win.txt | 3 +++ setup.py | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 requirements_py27win.txt diff --git a/README.md b/README.md index da30339..53553d1 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,19 @@ Available from Rebble project page https://github.com/pebble-dev/pebble-tool/ Definitely works with Python 2.7. + +## Windows note + +Windows is NOT a supported platform for Pebble (outside of WSL). + +However you can get debug trace on native Windows using Python 2.7 +by checking out the code and issuing: + + python -m pip install -r requirements_py27win.txt + +Debug trace can be accessed via: + + python pebble.py logs --phone IP_ADDRESS_HERE + +Alternatively `setup.py` can be called with the usual `develop` or `install` +parameter. diff --git a/requirements_py27win.txt b/requirements_py27win.txt new file mode 100644 index 0000000..9e1dd89 --- /dev/null +++ b/requirements_py27win.txt @@ -0,0 +1,3 @@ +pyparsing==2.4.7 +pyreadline==2.1 +-r requirements.txt diff --git a/setup.py b/setup.py index 968fe82..c8b2c53 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,9 @@ if sys.version_info < (3, 4, 0): requires.append('enum34==1.0.4') +if sys.version_info < (3, 0) and sys.platform.startswith('win'): + requires.insert(0, 'pyparsing==2.4.7') + requires.insert(0, 'pyreadline==2.1') __version__ = None # Overwritten by executing version.py. with open('pebble_tool/version.py') as f: