I created a Python 3 port of UXP out of boredom...

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

User avatar
Moonchild
Project founder
Project founder
Posts: 39728
Joined: 2011-08-28, 17:27
Location: Sweden

Re: I created a Python 3 port of UXP out of boredom...

Post by Moonchild » 2026-04-07, 10:28

athenian200 wrote:
2026-04-06, 16:36
That odd powershell.exe message is one I haven't been seeing on my system and for whatever reason haven't been able to reproduce. The reason it's particularly odd is that I don't recall ever adding anything powershell-related or touching any files that mention it.
Just a thought but maybe it invokes powershell because it uses file associations and it gets invoked that way? Might be a python for Windows oddity, and may need to configuration of python itself to avoid?
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
__Sandra__
Moonbather
Moonbather
Posts: 55
Joined: 2022-05-16, 08:00
Location: Chernihiv, Ukraine

Re: I created a Python 3 port of UXP out of boredom...

Post by __Sandra__ » 2026-04-07, 11:08

This is what warning about powershell looks like. It appears almost immediately and in the future, it does not seem to affect the project build process in any way.
powershell.png
And another question, I don’t know how much it relates inconsequentially to the topic. I'm building a project with the arch:AVX option. When compiling some files, there are many override warnings, for example cl: command line warning D9025: override \"/arch:AVX\" to \"/arch:SSE2\". Where a file is compiled whose name mentions optimization for SSE2, this is understandable (for example, sse_optimized.cpp, nsTextFragmentSSE2.cpp). But there are also overrides “in the other direction” (cl: command line warning D9025: override \"/arch:SSE2\" to \"/arch:AVX\""). How normal is this situation?
You do not have the required permissions to view the files attached to this post.

plumsh
Newbie
Newbie
Posts: 4
Joined: 2026-04-09, 08:09

Re: I created a Python 3 port of UXP out of boredom...

Post by plumsh » 2026-04-13, 11:02

Does this Python 3 port include any code from this port?

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1940
Joined: 2018-10-28, 19:56
Location: Georgia

Re: I created a Python 3 port of UXP out of boredom...

Post by athenian200 » 2026-04-13, 14:44

plumsh wrote:
2026-04-13, 11:02
Does this Python 3 port include any code from this port?
Actually, wound up not needing to use anything from that one. Partially because everything was just shared as a single, monolithic diff across the entire codebase and I couldn't make heads or tails of it, plus I had already started working on my port before that one was ready. I did, however, get snippets of code from Copilot as I went... but I was making one change at a time and rebuilding to see where it failed (outside of where I used 2to3 of course, but that was a normal code replacement script rather than AI), validating behavior the same way I always did when applying and fixing up patches from Bugzilla and other sources to match our codebase.

So it's really kind of a combination here... there were parts where I used 2to3 and traditional code replacement scripts, parts where I referenced Bugzilla, parts where I just learned how Python 3 worked and applied the same mechanical fixes to the same class of problem so often it became easy, and parts that used a snippet of code from Stack Overflow or Copilot applied to our codebase.
"Linux makes everything difficult." -- Lyceus Anubite
"Linux is a cancer that attaches itself in an intellectual property sense to everything it touches. That's the way that the license works." -- Steve Ballmer
"We always overestimate the change that will occur in the next two years and underestimate the change that will occur in ten." -- Bill Gates

solitude
Fanatic
Fanatic
Posts: 151
Joined: 2025-08-03, 23:56

Re: I created a Python 3 port of UXP out of boredom...

Post by solitude » 2026-05-09, 12:52

Shouldn't http://developer.palemoon.org/build/linux/ be updated to list Python3 as dependency now, instead of 2.7
Pale Moon and Basilisk arm64 user, on Raspberry Pi 5 (8 GB RAM)

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1254
Joined: 2020-11-03, 06:47
Location: Philippines

Re: I created a Python 3 port of UXP out of boredom...

Post by jobbautista9 » 2026-05-09, 13:29

The instructions are intended for those building from the release branch, which is currently still in Python 2.7.
Image

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.

User avatar
MasterSlenderTR
Moonbather
Moonbather
Posts: 54
Joined: 2025-05-10, 13:37
Location: Turkey

Re: I created a Python 3 port of UXP out of boredom...

Post by MasterSlenderTR » 2026-05-23, 10:33

jobbautista9 wrote:
2026-04-03, 03:17
We never supported VS2019 either (which seems to be the most recent Visual Studio that Windows 7 supports). http://developer.palemoon.org/build/windows/
You can force-install the latest version of VS2022 on Win7 and build Pale Moon too.
Untitled.png
Untitledd.png
You do not have the required permissions to view the files attached to this post.
RTX 3060 Ti | Ryzen 7 5700x3d | ASUS Prime B450M-A II | 48GB DDR4 RAM | Windows 7

Image -> Desktop Setup <-