-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensured all methods in
setuptools.modified
raise a consistant `dist…
…utils.error.DistutilsError` type
- Loading branch information
Showing
4 changed files
with
52 additions
and
18 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 @@ | ||
Ensured all methods in ``setuptools.modified`` raise a consistant ``distutils.error.DistutilsError`` type -- by :user:`Avasam` |
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,8 +1,18 @@ | ||
from ._distutils._modified import ( | ||
newer, | ||
newer_group, | ||
newer_pairwise, | ||
newer_pairwise_group, | ||
) | ||
try: | ||
# Ensure a DistutilsError raised by these methods is the same as distutils.error.DistutilsError | ||
from distutils._modified import ( | ||
newer, | ||
newer_group, | ||
newer_pairwise, | ||
newer_pairwise_group, | ||
) | ||
except ImportError: | ||
# fallback for SETUPTOOLS_USE_DISTUTILS=stdlib, because _modified never existed in stdlib | ||
from ._distutils._modified import ( | ||
newer, | ||
newer_group, | ||
newer_pairwise, | ||
newer_pairwise_group, | ||
) | ||
|
||
__all__ = ['newer', 'newer_pairwise', 'newer_group', 'newer_pairwise_group'] |
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