<div dir="ltr"><div>hi Lumin,</div><div><br></div><div>we avoided doing a python3-opt SlackBuild until now because we didn't want to install a parallel python interpreter in the system: the potential new dependencies that the various scripts that might use that are *a lot* and we cannot afford to maintain what we have on SBo for the system's python also for another python in /opt, it will result in madness for the maintainers and for the admins.</div><div>but if you really want to use a newer python for wormhole you can add the python3 build to the wormhole SlackBuild itself so that *everything* is restricted to the /opt/wormhole directory, also the newer python3 interpreter, so that no other script should use it.</div><div><br></div><div>Matteo</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Il giorno lun 8 giu 2026 alle ore 10:19 Lumin Etherlight via SlackBuilds-users <<a href="mailto:slackbuilds-users@slackbuilds.org">slackbuilds-users@slackbuilds.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello, friends,<br>
<br>
I was trying to package magic-wormhole[1],<br>
but found out that it requires Python 3.10+, which<br>
is newer than the version available in Slackware.<br>
I solved this by compiling a python3-opt version<br>
of python, that installs to /opt, without effect<br>
on the base Python install.<br>
<br>
I also wrote a SlackBuild for magic-wormhole<br>
that installs pre-built wheels for the package and<br>
all of its dependencies into a venv, then packages<br>
it as an installation to /opt too. the wormhole<br>
executables are then copied to /usr/bin, and they<br>
work as expected; they automatically use the new<br>
/opt Python installation, since they set it as the<br>
shebang #! interpreter, thus using the libraries<br>
installed in that venv.<br>
<br>
Wormhole works, all dependencies are in the<br>
/opt/magic-wormhole-bin venv, the Python install<br>
it uses is in /opt/python3. This seems to be some<br>
reasonable method to package such applications.<br>
Close to a typical -bin package, but for Python,<br>
basically. The final wormhole package is 26MiB,<br>
so not too bloated. Other applications that may<br>
depend on newer Python3 versions can perhaps do<br>
the same, until we hopefully get a newer Python in<br>
Slackware. No internet connection is required at<br>
build-time for this method; all dependencies are<br>
listed in the .info file as expected.<br>
<br>
I have submitted both scripts; python3-opt,<br>
and magic-wormhole-bin, for your consideration and<br>
review. I don't expect them to be published soon,<br>
of course, as this approach is not traditionally<br>
used in SlackBuilds, so it will likely take some<br>
discussion, testing, and improvement. On my side,<br>
python3-opt was tested on clean Slackware installs<br>
fully patched, for both 32bit and 64bit. As for<br>
magic-wormhole-bin, it works on 64bit for now, and<br>
that's where I tested it. It fails on 32bit, in<br>
an isolated venv, with some Rust compiler errors,<br>
as one of the dependencies compiles something at<br>
some point, probably a Python plugin. I haven't<br>
had time to debug this yet.<br>
<br>
Feedback is, as always, much appreciated :)<br>
<br>
[1]: <a href="https://magic-wormhole.readthedocs.io/" rel="noreferrer" target="_blank">https://magic-wormhole.readthedocs.io/</a><br>
<br>
<br>
Best Regards,<br>
Lumin Etherlight<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div>