Tootfinder

Opt-in global Mastodon full text search. Join the index!

No exact results. Similar results found.
@mgorny@social.treehouse.systems
2025-06-29 16:44:37

So #Gentoo #Python eclasses are pretty modern, in the sense that they tend to follow the best practices and standards, and eventually deal with deprecations. Nevertheless, they have a long history and carry quite some historical burden, particularly regarding to naming.
The key point is that the eclasses were conceived as a replacement for the old eclasses: "distutils" and "python". Hence, much like we revision ebuilds, I've named the matching eclasses "distutils-r1" and "python-r1". For consistency, I've also used the "-r1" suffix for the remaining eclasses introduced at the time: "python-any-r1", "python-single-r1" and "python-utils-r1" — even though there were never "r0"s.
It didn't take long to realize my first mistake. I've made the multi-impl eclass effectively the "main" eclass, probably largely inspired by the previous Gentoo recommendations. However, in the end I've found out that for the most use cases (i.e. where "distutils-r1" is not involved), there is no real need for multi-impl, and it makes things much harder. So if I were naming them today, I would have named it "python-multi", to indicate the specific use case — and either avoid designating a default at all, or made "python-single" the default.
What aged even worse is the "distutils-r1" eclass. Admittedly, back when it was conceived, distutils was still largely a thing — and there were people (like me) who avoided unnecessary dependency on setuptools. Of course, nowadays it has been entirely devoured by setuptools, and with #PEP517 even "setuptools" wouldn't be a good name anymore. Nowadays, people are getting confused why they are supposed to use "distutils-r1" for, say, Hatchling.
Admittedly, this is something I could have done differently — PEP517 support was a major migration, and involved an explicit switch. Instead of adding DISTUTILS_USE_PEP517 (what a self-contradictory name) variable, I could have forked the eclass. Why didn't I do that? Because there used to be a lot of code shared between the two paths. Of course, over time they diverged more, and eventually I've dropped the legacy support — but the opportunity to rename was lost.
In fact, as a semi-related fact, I've recognized another design problem with the eclass earlier — I should have gone for two eclasses rather than one: a "python-phase" eclass with generic sub-phase support, and a "distutils" (or later "python-pep517") implementing default sub-phases for the common backends. And again, this is precisely how I could have solved the code reuse problem when I introduced PEP517 support.
But then, I didn't anticipate how the eclasses would end up looking like in the end — and I can't really predict what new challenges the Python ecosystem is going to bring us. And I think it's too late to rename or split stuff — too much busywork on everyone.

@cketti@social.int21.dev
2025-05-29 23:00:01

@…
1. Looking for libraries/examples in a given language for a specific purpose.
2. Sometimes I'm searching for code that uses a certain library/API to understand how others use it.
3. Sometimes I misuse an API and then look for other projects that made the same mistake and need fixing.
4. Sometimes I search for code that uses one of my l…

@blaise@mastodon.cloud
2025-05-30 00:31:13

The government would *never* misuse their vast and terrifying domestic spying capabilities for evil. The people who *work* for the government, on the other hand....
404media.co/a-texas-cop-search

@shoppingtonz@mastodon.social
2025-06-29 08:41:03

This song is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesnoth/tre
Also described at:

This is part of the Battle for Wesnoth soundtrack/game music
@davidbody@fosstodon.org
2025-05-29 15:38:42

[T]he earliest radio shows are on the surface of an electromagnetic sphere now 200 light-years in diameter, a sphere expanding at the speed of light. If there is intelligence "out there," looking for signs of intelligent life in the cosmos, its first knowledge of humans will come from (probably) Amos 'n' Andy. Now that is, indeed, a sobering, even disquieting thought.
- Paul J. Nahin, The Mathematical Radio: Inside the Magic of AM, FM, and Single-Sideband

@shoppingtonz@mastodon.social
2025-06-30 04:50:42

This song is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesnoth/tre
Also described at:

This is part of the Battle for Wesnoth soundtrack/game music
@shoppingtonz@mastodon.social
2025-06-30 04:41:35

This song is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesnoth/tre
Also described at:

This is part of the Battle for Wesnoth soundtrack/game music
@shoppingtonz@mastodon.social
2025-06-30 04:13:13

This song is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesnoth/tre
Also described at:

This is part of the Battle for Wesnoth soundtrack/game music
@shoppingtonz@mastodon.social
2025-06-29 05:06:32

This song is called Breaking the Chains and is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesnoth/tre
Also described at:

This is part of the Battle for Wesnoth soundtrack/game music and it is called "Breaking the Chains".

Author:
Mattias Westlund

filename:

breaking_the_chains.ogg
@shoppingtonz@mastodon.social
2025-06-29 04:08:55

Edit: ok, uploaded. Now everything is as it should.
See my first (#)WesnothMusic posts in edit history for background :)
This song is called Battle Music and is released under the GPL-2.0 license as part of the Battle for Wesnoth game and the music is located at
github.com/wesnoth/wesno…

Excuse the silence in the beginning...it's not your speakers/headphones...it must be a bit of silence before the music begins...

This is the original battle.ogg file!

Author: Aleksi Aubry-Carlson