[OpenWrt-Devel] Meson/Ninja build system

Felix Fietkau nbd at nbd.name
Tue Mar 19 07:14:46 EDT 2019


On 2019-03-18 14:03, Jo-Philipp Wich wrote:
> Hi,
> 
>> I think the cmake.mk-link approach would be a good idea and given 
>> previous discussions the plan is afaik to pull in Ninja first and 
>> once that's confirmed working via CMake add support for Meson.
> 
> fine with me.
> 
>> Having a look at https://www.python.org/dev/peps/pep-0537/#lifespan 
>> it seems like a good idea to stick with 3.7?
> 
> No opinion.
> 
>> As for OpenWrt, there are already files with hard dependency of 
>> python3 dating back to 2015 doing a quick grep of the source tree.
>> 
>> https://github.com/openwrt/openwrt/blob/master/scripts/dl_cleanup.py
>> https://github.com/openwrt/openwrt/blob/master/scripts/flashing/eva_ramboot.py
> 
> Both files are supplemental scripts not used as part of the actual build
> process.
> 
>> There are also upstream projects like wireless-db that doesn't 
>> compile/build cleanly with vanilla 2.7 
>> https://github.com/openwrt/openwrt/pull/1521
> 
> On the other end of the spectrum there is SCons (include/scons.mk) which
> apparently explicitly does not support Python 3 [1].
> 
> Having to depend on two Python versions is not ideal. Maybe it is worth
> sacrificing scons support for meson, depending on the number of users.
It seems that this wiki information is outdated and current versions of
SCons support python 3. Let's go with that.

- Felix

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list