[Slackbuilds-users] sbotools: multiline build options

J. Milgram milgram at cgpp.com
Sun May 24 22:40:48 UTC 2026



Dumb question. Where I see something like this in a Slackbuild README:

=========
Add the following before the python3 build commands in your
Slackbuild to use this version over the stock one in 15.0:

PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
=========

... sboinstall and sboupgrade will say "It looks like python3-setuptools-opt has options; would you like to set
any when the slackbuild is run?"

All good. I say "y" and then the question is how to type this in.

First, I presume it's entered without the "export" builtin:

PYVER=<whatever>
PYTHONPATH=/opt/python$PYVER/site-packages

... Else I get a "not a valid identifier" bash error apparently due to the script attempting: "export PYTHONPATH=<path> foo.Slackbuild" and there's no "foo.Slackbuild" to export.

Other question is, how to enter the lines at the sboinstall prompt: one at a time, separated by <return>,  or both in one line, separated by a semicolon?

I've been "cheating" and entering only the second line, as PYTHONPATH=/opt/python3.9/site-packages, because I know I'm running 3.9. However, still curious how multiline input is envisioned to work.

thanks!

Judah

=====
milgram at cgpp.com
301-257-7069




More information about the SlackBuilds-users mailing list