Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Switching to Python 3?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Switching to Python 3? (Read 2829 times)
tamer
Newbie
Posts: 15
Karma: 1
Switching to Python 3?
«
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
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Switching to Python 3?
«
Reply #1 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Switching to Python 3?