Tidying up Python

Lukas Oberhuber lukaso at gmail.com
Fri Jul 11 15:22:39 UTC 2025


This may be well off topic, but I strongly suspect the expectation for
others (and it certainly applies to me) is that all of the packages who
need it, depend on one singular python release. And that when that default
release is changed, all the packages depend on the new release, even if
they were installed previously.

The current situation where every package decides on its own which python 3
version to support, feels wrong to me. How often does a different package
truly need an exact python version, and if it does, maybe that can be
handled separately?

I don't know if this is a core limitation of macports, since the same
happens for llvm, gcc, clang and other tools.

I'm really not keen on the current state: having to install (and in my
case, build) a broad swathe of the history of software development tools in
order to get the suite of packages I need.

I checked my ci build directory and it is currently 49GB.

My context: I package GIMP's official release and have to build
*everything* because I compile/link to older SDKs.

On Fri, 11 Jul 2025 at 16:06, Christoph Kukulies via macports-users <
macports-users at lists.macports.org> wrote:

> Thanks to all,
>
> selecting python313 now worked. Actually what set the ball rolling was the
> fact that my jupyter is defunct.
>
> It began, when jupyter under conda/anaconda3, had an outdated sympy
> package. It ended up in removing anaconda/conda totally from my system.
> After that jupyter didn't work any longer:
>
> $ jupyter notebook
> usage: jupyter [-h] [--version] [--config-dir] [--data-dir]
> [--runtime-dir] [--paths] [--json] [--debug] [subcommand]
>
> Jupyter: Interactive Computing
>
> positional arguments:
>   subcommand     the subcommand to launch
>
> options:
>   -h, --help     show this help message and exit
>   --version      show the versions of core jupyter packages and exit
>   --config-dir   show Jupyter config dir
>   --data-dir     show Jupyter data dir
>   --runtime-dir  show Jupyter runtime dir
>   --paths        show all Jupyter paths. Add --json for machine-readable
> format.
>   --json         output paths as machine-readable json
>   --debug        output debug information about paths
>
> Available subcommands: 3.13 console dejavu events execute kernel
> kernelspec lab-3.13 labextension-3.13 labhub-3.13 migrate
> nbconvert notebook-3.13 run server troubleshoot trust
>
> Jupyter command `jupyter-notebook` not found.
>
> After the python313 episode the above jupyter disfunctionality persists.
>
> An attempt to install jupyter now under python313 shows that there are
> 3.11 dependencies:
>
> pip3 install jupyter
> Requirement already satisfied: jupyter in
> /usr/local/lib/python3.11/site-packages (1.1.1)
>
> and lots more of references to python 3.11
>
>
> Am 11.07.2025 um 11:04 schrieb Bjarne D Mathiesen via macports-users <
> macports-users at lists.macports.org>:
>
> Den 11.07.2025 kl. 10.38 skrev Ryan Carsten Schmidt:
>
>
> On Jul 11, 2025, at 03:27, Bjarne D Mathiesen wrote:
>
> port select --set python  python313
> port select --set python3 python313
>
>
> Prefix those commands with "sudo" for normal root MacPorts installations.
>
>
> Well, I'm running under "sudo bash" under my admin account to avoid
> having to prefix every admin task w/ "sudo"
>
>
> I believe I read somewhere that the python community recommends that
> "python" always be python 2.x, never python 3.x. Programs that want to use
> python 3.x should use the program name "python3". If "port select python"
> currently allows versions of python 3.x to be selected, we may want to
> change that.
>
>
> We did do a concerted effort in getting rid of python27 in macports some
> time back. If I remember correctly, I had a major part in updating a lot
> of stuff to at least python35 at that time.
>
> Python27 is offically dead. It was only being kept around in a comatose
> state because of a lot of stuff not having been upgraded to python3.x
>
> --
> Bjarne D Mathiesen
> Slagelse ; Danmark ; Europa
> -----------------------------------------------------------------------
> denne besked er skrevet i et totalt M$-frit miljø
> MacPro 2010 5.1 ; OpenCore + macOS 14.7.6 Sonoma
> 2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
> ATI Radeon RX 590 8 GB
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250711/977ed10c/attachment.htm>


More information about the macports-users mailing list