Skip to content

Port the build system from python2 to python3#25

Open
mateusz-banaszek wants to merge 2 commits intoInviNets:masterfrom
mateusz-banaszek:port-to-python3
Open

Port the build system from python2 to python3#25
mateusz-banaszek wants to merge 2 commits intoInviNets:masterfrom
mateusz-banaszek:port-to-python3

Conversation

@mateusz-banaszek
Copy link
Contributor

Most (all?) of the tools used within the project use python3. But whip6-pub still requires python2. Let's try to move it forward too.

Tu upgrade, just pull the source and run it. You may need to install into your python3 environment the dependencies: pip install pyaml termcolor. There should be no need to reinstall or re-link whip6-pub/smake.

I did verify on a few apps that smake cherry gives the same output before and after the change (modulo randomized numbers). I also successfully run those apps on a CherryMote.
However, I didn't test whether all smake xx yy commands work – I haven't been aware of them till today, and I have never used them at all.

The files were ported by a combination of my manual work and a help of the2to3 tool. Except for nesc/whip6/platforms/tools/programmer/ccbsl/cc2538-bsl.py and nesc/whip6/platforms/tools/programmer/ccbsl/intelhex/*: they were upgraded to their newest upstream states (pulled from here and here respectively).

Mateusz Banaszek added 2 commits September 17, 2020 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant