slackbuilds/python/python3-setuptools-scm-opt
fourtysixandtwo 74f9a67238
python/python3-setuptools-scm-opt: Updated for version 8.3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2025-04-26 10:17:39 +07:00
..
README python/python3-setuptools-scm-opt: README fixes. 2024-04-05 15:18:07 +07:00
python3-setuptools-scm-opt.SlackBuild python/python3-setuptools-scm-opt: Updated for version 8.3.1. 2025-04-26 10:17:39 +07:00
python3-setuptools-scm-opt.info python/python3-setuptools-scm-opt: Updated for version 8.3.1. 2025-04-26 10:17:39 +07:00
slack-desc

README

python3-setuptools-scm-opt (setuptools-scm installed to /opt)

setuptools_scm extracts Python package versions from git or hg
metadata instead of declaring them as the version argument or in a SCM
managed file.

# Build your package with this version to fix errors like the following:
ImportError: cannot import name '__version__' from ...

NOTE:
Installs to /opt/python$PYVER/site-packages

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