OPNsense Forum

English Forums => General Discussion => Topic started by: tamer on September 14, 2016, 12:28:43 pm

Title: Switching to Python 3?
Post by: tamer on September 14, 2016, 12:28:43 pm
Hi,

I was wondering whether it is planned or even wanted to ever switch to using Python 3 rather than 2.7? If there is any interest, I can help with the port efforts (but would need some pointers as to which parts are more important to port first). If I remember correctly, there are no scripts or code using Python in the base FreeBSD, which means there are only a few utilities (configd,...) that were added by opnsense this is make porting a bit easier.

Let me know if this is something that's wanted.

Tamer
Title: Re: Switching to Python 3?
Post by: AdSchellevis on September 14, 2016, 08:35:42 pm
Hi Tamer,

There are no concrete plans yet, most of our scripts probably work on 3.5 as well, but all needs to be tested and adjusted.
Python 3.5 is available in the ports-tree, we should inspect the rest of the used python packages for compatibility.

If you would like to work on testing our current scripts and create pull requests for necessary changes, that would be great. If all code is compatible, we could do a switch in a major release.

There's no rush in using 3.5, but if all our own scripts (most of them are located in src/opnsense/scripts and src/opnsense/service ) are compatible, it's certainly a good idea.

Best regards,

Ad