Skip to content

Commit 2b0722f

Browse files
committed
Mention SETUPTOOLS_SCM_PRETEND_VERSION_FOR in error message
1 parent 051ad96 commit 2b0722f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/setuptools_scm/_get_version_impl.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ def _version_missing(config: Configuration) -> NoReturn:
122122
"metadata and will not work.\n\n"
123123
"For example, if you're using pip, instead of "
124124
"https://github.com/user/proj/archive/master.zip "
125-
"use git+https://github.com/user/proj.git#egg=proj"
125+
"use git+https://github.com/user/proj.git#egg=proj\n\n"
126+
"Alternatively, set the version with the environment variable "
127+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described "
128+
"in https://setuptools-scm.readthedocs.io/en/latest/config."
126129
)
127130

128131

0 commit comments

Comments
 (0)