So I'm trying to build python from source because the target box doesn't have the latest available as a package. This is fine, like it's a known thing, but I always try to use the latest version of Python for new projects because it increases the amount of time between writing it and needing to do the upgrade process. Plus newer Pythons come with nice features.
Then I get this baffling error which is: /home/matdevdug/Python-3.13.2/Lib/test/test_fstring.py:1655: SyntaxWarning: invalid escape sequence '\N'
self.assertEqual(f'{b"\N{OX}"=}', 'b"\\N{OX}"=b\'\\\\N{OX}\'')
I check test_fstring and yeah seems to be a legit warning. So I google it and find this: https://github.com/python/cpython/issues/129693 which is basically "yeah we should suppress SyntaxWarning in test_fstring".
I'm a little surprised that the current latest release of a non .0 version of Python doesn't exit clean with "sudo make altinstall". This is the first time in maybe a dozen times of doing this that I've encountered a problem.
Does anyone know the "right way" to fix this? I can obviously just make the test pass, but I don't know if there's a better way to do it. #python #make
@matdevdug can you install a precompiled python with uv? It’s pretty wonderful.