[Slackbuilds-users] improvement to python slackbuilds template

Glenn glimrick at epilitimus.com
Sat Nov 22 20:24:06 UTC 2025


On 11/21/25 17:29, Glenn wrote:
> Hello,
>
> I have come up with what I think is an improvement to the existing 
> template for python builds, patch attached.
>
> 1. Adds PYTHONVER as an input variable. The default is "3" if none is 
> given on the command line.
>
> 2. Changes the calls to python3 to python$PYTHONVER
>
> 3. If PYTHONVER was provided adds a tag to the package name.
>
> This allows something like:
>
> $PYTHONVER=3.14 ./some_python_build.Slackbuild
>
> The python build will be done against the requested version of python 
> and the package name will end with -py3.14-SBO so that it won't 
> clobber any other versions of the build you may have installed in 
> /var/log/packages/. This way if you upgrade python on your machine you 
> can easily rebuild modules for the new version. If you don't supply a 
> PYTHONVER then the build defaults to the system python3.
>
> Hope this is found useful.
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
I also have a simple script that makes the changes to either existing 
SBo or Slackware scripts. I have only done minimal testing on it, up to 
this point I have been making the changes by hand, but I can send it if 
anyone is interested.




More information about the SlackBuilds-users mailing list