Skip to content

Conversation

@pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Oct 11, 2024

Python 3.8 is end-of-life, removed.
Python 3.13 is released, added.

@pdgendt pdgendt requested review from carlescufi and marc-hb October 11, 2024 10:18
@pdgendt pdgendt linked an issue Oct 11, 2024 that may be closed by this pull request
@pdgendt pdgendt added this to the v1.3.0 milestone Oct 11, 2024
@pdgendt pdgendt force-pushed the python-bump branch 2 times, most recently from b981428 to 40941a9 Compare October 11, 2024 12:07
@marc-hb
Copy link
Collaborator

marc-hb commented Oct 11, 2024

Why did Python 3.13 make that change and what does a "drive-free" path that starts with a slash do on Windows?

@marc-hb
Copy link
Collaborator

marc-hb commented Oct 11, 2024

I found a good answer in this 2007 (!) bug https://bugs.python.org/issue1669539

Before 3.13:

>>> s = '\\Python25'
>>> os.path.isabs(s)
True
>>> os.path.abspath(s)
'C:\\Python25'
>>> os.chdir('d:')
>>> os.path.abspath(s)
'D:\\Python25'

If this can jump between C: and D: then I agree it's not "absolute".

Python 3.13 changed the behavior for os.path.isabs
https://docs.python.org/3/library/os.path.html#os.path.isabs

Prevent absolute paths that start with a '/'.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Python 3.8 is end-of-life, removed.
Python 3.13 is released, added.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
@pdgendt pdgendt merged commit c3aadf5 into zephyrproject-rtos:main Oct 15, 2024
@pdgendt pdgendt deleted the python-bump branch October 15, 2024 06:32
@pdgendt pdgendt mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI failing on Windows - Python 3.13

2 participants