-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error message when build dependencies not satisfied (#1628)
This only manifests on old platforms, but as we still support them makes sense to provide better error messages, and relax a bit our build requirements. Signed-off-by: Bernat Gabor <[email protected]>
- Loading branch information
1 parent
5e64776
commit 1d9b7d1
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fail with better error message if trying to install source with unsupported ``setuptools``, allow ``setuptools-scm >= 2`` | ||
and move to legacy ``setuptools-scm`` format to support better older platforms (``CentOS 7`` and such) - by :user:`gaborbernat`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
from setuptools import setup | ||
from setuptools import __version__, setup | ||
|
||
setup() | ||
if int(__version__.split(".")[0]) < 41: | ||
raise RuntimeError("setuptools >= 41 required to build") | ||
|
||
setup( | ||
use_scm_version={"write_to": "src/virtualenv/version.py", "write_to_template": '__version__ = "{version}"'}, | ||
setup_requires=["setuptools_scm >= 2"], | ||
) |