this post was submitted on 23 May 2025
15 points (94.1% liked)

Linux

7469 readers
314 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

Discussing a breaking change in Python's setuptools.

The really interesting part is in the discussion section.... and it shows once more how incredibly well-designed the GNU Guix package manager is -- which solves these problems very very well, for arbitrary languages and with a fast growing distribution of, by now, about 50,000 packages.

you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange 2 points 6 days ago

Historically, hyphens and underscores were treated as equivalent in the names of keys appearing in the file

This is why I strongly prefer underscores; never use hyphens if you can avoid it. Eventually the names will end up as variables in a programming language where you have to use underscores, and now you've got some stupid and confusing translation system to deal with.

Another example of this is CSS names in Javascript. Rust also made this mistake unfortunately.

This [key name in setup.cfg] has been deprecated in 2021.

I knew Python didn't take backwards compatibility seriously after Python 3.12, but 4 years is a joke.