Hi guys!
I've been able to build Palemoon(as of February 27-th, 2026) on Kubuntu 25.10, purely with Python3. Sites work, youtube videos play...
To achieve that Python 2->3 porting goal I've been using Claude Code AI. Here are my patches, please enjoy!
https://tilde.club/~megastallman/
There is a separate patch for Platform component, and the browser itself. Both are required.
AI has fixed "./mach build", "./mach package" and "./mach clobber" commands for me.
For sure I expect there is some platform-dependent Python code left unported, especially that for necrosoft window. But the overall mission seems achieveable.
I've read a couple of threads here about "evolution, not revolution", and I admit that this code probably will not end up in upstream. Or maybe someone picks it up though.
Anyway, I've resolved my problem and you are welcome to re-use those results.
Ask me anything!
Have a question you always wanted to ask Moonchild but never did? Now's your chance!
From 2026-03-08 to 2026-03-15 I'll be open to any question by the community, after which I'll provide answers.
Go here to participate: https://forum.palemoon.org/viewtopic.php?f=66&t=33222
Have a question you always wanted to ask Moonchild but never did? Now's your chance!
From 2026-03-08 to 2026-03-15 I'll be open to any question by the community, after which I'll provide answers.
Go here to participate: https://forum.palemoon.org/viewtopic.php?f=66&t=33222
Working Palemoon build with Python3
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
-
megastallman
- New to the forum

- Posts: 1
- Joined: 2026-02-28, 11:22
-
Basilisk-Dev
- Astronaut

- Posts: 562
- Joined: 2022-03-23, 16:41
- Location: Chamber of Secrets
Re: Working Palemoon build with Python3
Pretty cool. Thank you for being honest that it is generated by AI. Some people view that as negative, in my opinion it's fine as long as a human thoroughly reviews the code before merging it in. I actually had the thought the other day to try doing literally this exact same thing. I'll give it a shot next week, taking a break from any development work this weekend.
-
jobbautista9
- Board Warrior

- Posts: 1149
- Joined: 2020-11-03, 06:47
- Location: Philippines
Re: Working Palemoon build with Python3
Windows will probably be a blocker for this since in that OS we use MozillaBuild 3.4 as the unix-like environment for the mach script. It has a Python3 bundled interestingly enough but it's versioned 3.7.9. With Python 3 known for doing changes out-of-the-blue that break backwards compatibility I personally don't want our limited dev time to be spent on making sure our build system is compatible with the latest Python 3 shenanigans (we already have to deal with GCC and Clang). I'd rather the effort be spent in convincing Linux distros and the BSDs to package Tauthon which is an actively-maintained fork of Python 2, and maybe fork MozillaBuild as well to use that (though we don't really need to because I think Tauthon will try to maintain backwards compatibility with Python2).

Tired of creating stuff!
Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617
XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.
-
athenian200
- Contributing developer

- Posts: 1637
- Joined: 2018-10-28, 19:56
- Location: Georgia
Re: Working Palemoon build with Python3
Oh wow... there's another Python 3 version of UXP? I really should have checked the forums then... I kinda spent the last month trying to port it over myself after an Epyrus user asked about building with Python 3 and I felt awkward about it.
Did you really do the whole thing with AI, or was it more like AI-assisted coding by hand as you hit issues? I mean, yeah, from what I've seen of AI, it can give simple coding advice and take a good guess of where you should look in a lot of cases, maybe even convert a small script or two, but it can't actually understand all the nuances of the codebase... still, I have heard AI is good at Python, and it seemed like every time I would try to search and expect a Stack Overflow or a Bugzilla post to come up, Copilot would pop up and give me the answer, and then Stack Overflow or Bugzilla would give the same answer 90% of the time (probably because it was trained on them).
If that was really all with AI, then Claude is on another level, my port took me about a month (not counting the time I spent studying Python off and on before even getting started)... and it's not even in a great/perfect state. Though if you say yours works great on Linux, and mine was primarily written on Windows (with an externally-installed Python forced into the MSYS1 environment via PATH changes), then possibly if I look over both we might actually have something usable...
Did you really do the whole thing with AI, or was it more like AI-assisted coding by hand as you hit issues? I mean, yeah, from what I've seen of AI, it can give simple coding advice and take a good guess of where you should look in a lot of cases, maybe even convert a small script or two, but it can't actually understand all the nuances of the codebase... still, I have heard AI is good at Python, and it seemed like every time I would try to search and expect a Stack Overflow or a Bugzilla post to come up, Copilot would pop up and give me the answer, and then Stack Overflow or Bugzilla would give the same answer 90% of the time (probably because it was trained on them).
If that was really all with AI, then Claude is on another level, my port took me about a month (not counting the time I spent studying Python off and on before even getting started)... and it's not even in a great/perfect state. Though if you say yours works great on Linux, and mine was primarily written on Windows (with an externally-installed Python forced into the MSYS1 environment via PATH changes), then possibly if I look over both we might actually have something usable...
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind
-
Moonchild
- Project founder

- Posts: 38957
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Working Palemoon build with Python3
Maybe you two should compare notes, diff the code, and see where the differences and potential pain points are?
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite