Skip to content

Commit 5b85f47

Browse files
Merge pull request #9015 from PhrozenByte/docs-build-src-version
Update install docs to include `SETUPTOOLS_SCM_PRETEND_VERSION`
2 parents e42ec86 + 8f63d98 commit 5b85f47

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/installation.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ While we try not to break master, there are no guarantees on anything.
428428

429429
Ensure to install the dependencies as described within :ref:`source-install`.
430430

431+
Version metadata is obtained dynamically at install time using ``setuptools-scm``.
432+
Please ensure that your git repo either has correct tags, or provide the version
433+
manually using the ``SETUPTOOLS_SCM_PRETEND_VERSION`` environment variable.
434+
431435
::
432436

433437
# get borg from github
@@ -437,11 +441,15 @@ Ensure to install the dependencies as described within :ref:`source-install`.
437441
virtualenv --python=$(which python3) borg-env
438442
source borg-env/bin/activate # always before using!
439443

440-
# install borg + dependencies into virtualenv
444+
# install borg dependencies into virtualenv
441445
cd borg
442446
pip install -r requirements.d/development.txt
443447
pip install -r requirements.d/docs.txt # optional, to build the docs
444448

449+
# set a borg version if setuptools-scm fails to do so automatically
450+
export SETUPTOOLS_SCM_PRETEND_VERSION=
451+
452+
# install borg into virtualenv
445453
pip install -e . # in-place editable mode
446454
or
447455
pip install -e .[pyfuse3] # in-place editable mode, use pyfuse3

0 commit comments

Comments
 (0)