<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 30, 2024, 10:11 PM David Chmelik <<a href="mailto:davidnchmelik@gmail.com">davidnchmelik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/30/24 9:53 PM, Jeremy Hansen wrote:<br>
> On Wed, Oct 30, 2024, 9:49 PM <<a href="mailto:dchmelik@gmail.com" target="_blank" rel="noreferrer">dchmelik@gmail.com</a> <br>
> <mailto:<a href="mailto:dchmelik@gmail.com" target="_blank" rel="noreferrer">dchmelik@gmail.com</a>>> wrote:<br>
><br>
> Pip for Python may have existed 10+ years, but now some/many<br>
> UNIX/GNU/Linux operating system distributions are saying 'setup.py is<br>
> deprecated: use pip'. The Python package I maintain (Mathics)<br>
> doesn't<br>
> even seem to install correctly with setup.py anymore since<br>
> mid-to-late<br>
> 2010s. Can we get a template to use pip, maybe with pip2tgz?<br>
><br>
><br>
> Have you looked at the python template?<br>
><br>
> <a href="https://slackbuilds.org/templates/python-template.SlackBuild" rel="noreferrer noreferrer" target="_blank">https://slackbuilds.org/templates/python-template.SlackBuild</a> <br>
> <<a href="https://slackbuilds.org/templates/python-template.SlackBuild" rel="noreferrer noreferrer" target="_blank">https://slackbuilds.org/templates/python-template.SlackBuild</a>><br>
I have it.<br>
> It includes the commands to build when a pyproject.toml file is <br>
> present. It will require at least python3-build among other possible <br>
> dependencies. [...]<br>
I don't know what that is, but I tried it and seems it'll work after I <br>
build dependencies. I installed python3-setuptools-opt (v74) but <br>
mathics_scanner says it needs at least v70...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You need to follow the directions in the python3-setuptools-opt README, which will have you set a variable in the SlackBuild requiring it to point it to the python packages residing in /opt/, namely: </div><div dir="auto"><br></div><div dir="auto"><div dir="auto">PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')</div><div dir="auto">export PYTHONPATH=/opt/python$PYVER/site-packages</div><div dir="auto"><br></div><div dir="auto">Jeremy</div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>