...
Tip |
---|
|
Before you can go on, you need to install Python: - Download Python 2.7.x from https://www.python.org/ (NOT Python 3!)
- Add the following directories to your
PATH environment variable:C:\Python27 C:\Python27\Scripts
Verify you can call python : Code Block |
---|
| C:\Users\Thomas>python --version
Python 2.7.5 |
- Install
pywin32 , an extension for WIndows. You will need it to interact with the TAP virtual interface - Install the Python setuptools from https://pypi.python.org/pypi/setuptools#installation-instructions. Typically, this means downloading a file called
ez_setup.py and double-clicking on it. Verify that you can call the easy_install command: Code Block |
---|
| C:\Users\Thomas>easy_install --version
setuptools 1.1.6 |
Install the pip utility: Code Block |
---|
| C:\Users\Thomas>easy_install pip |
Verify that you can call the pip command: Code Block |
---|
| C:\Users\Thomas>pip --version
pip 1.4.1 from c:\python27\lib\site-packages\pip-1.4.1-py2.7.egg (python 2.7) |
Install the OpenWSN Python dependencies (from the openwsn-sw\ directory on your Desktop): Code Block |
---|
| C:\Users\Thomas\Desktop\openwsn-sw> pip install -r requirements.piptxt |
Install SCons, the build environment: Code Block |
---|
| C:\Users\Thomas\Desktop\openwsn-sw> pip install --egg scons |
|
To compile the firmware as a Python extension module, type:
...