andysworkshop / stm32plus

The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers
http://www.andybrown.me.uk
Other
745 stars 224 forks source link

Python 3 fixes. #220

Closed mikepurvis closed 4 years ago

mikepurvis commented 4 years ago

Scons on Ubuntu Focal uses Python 3, so the SConstruct files must be updated to work with them.

This allows me to build and install the main library, however there may be remaining issues in the examples subdirectories, as I don't build those. It would be possible to run scons from a py3 virtualenv in order to validate this use on Travis, but realistically, the better approach would probably be to just try running the whole build from a Focal docker container— then you get the updated toolchain, stdlib, etc as well.