-
-
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.
Merge pull request #4298 from pypa/feature/distutils-55982565e
Merge with distutils @55982565e
- Loading branch information
Showing
102 changed files
with
1,447 additions
and
1,258 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
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
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 @@ | ||
Merged with pypa/distutils@55982565e, including interoperability improvements for rfc822_escape (pypa/distutils#213), dynamic resolution of config_h_filename for Python 3.13 compatibility (pypa/distutils#219), added support for the z/OS compiler (pypa/distutils#216), modernized compiler options in unixcompiler (pypa/distutils#214), fixed accumulating flags bug after compile/link (pypa/distutils#207), fixed enconding warnings (pypa/distutils#236), and general quality improvements (pypa/distutils#234). |
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,5 +1,5 @@ | ||
import sys | ||
import importlib | ||
import sys | ||
|
||
__version__, _, _ = sys.version.partition(' ') | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# from more_itertools 10.2 | ||
def always_iterable(obj, base_type=(str, bytes)): | ||
"""If *obj* is iterable, return an iterator over its items:: | ||
>>> obj = (1, 2, 3) | ||
>>> list(always_iterable(obj)) | ||
[1, 2, 3] | ||
If *obj* is not iterable, return a one-item iterable containing *obj*:: | ||
>>> obj = 1 | ||
>>> list(always_iterable(obj)) | ||
[1] | ||
If *obj* is ``None``, return an empty iterable: | ||
>>> obj = None | ||
>>> list(always_iterable(None)) | ||
[] | ||
By default, binary and text strings are not considered iterable:: | ||
>>> obj = 'foo' | ||
>>> list(always_iterable(obj)) | ||
['foo'] | ||
If *base_type* is set, objects for which ``isinstance(obj, base_type)`` | ||
returns ``True`` won't be considered iterable. | ||
>>> obj = {'a': 1} | ||
>>> list(always_iterable(obj)) # Iterate over the dict's keys | ||
['a'] | ||
>>> list(always_iterable(obj, base_type=dict)) # Treat dicts as a unit | ||
[{'a': 1}] | ||
Set *base_type* to ``None`` to avoid any special handling and treat objects | ||
Python considers iterable as iterable: | ||
>>> obj = 'foo' | ||
>>> list(always_iterable(obj, base_type=None)) | ||
['f', 'o', 'o'] | ||
""" | ||
if obj is None: | ||
return iter(()) | ||
|
||
if (base_type is not None) and isinstance(obj, base_type): | ||
return iter((obj,)) | ||
|
||
try: | ||
return iter(obj) | ||
except TypeError: | ||
return iter((obj,)) |
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,4 +1,3 @@ | ||
import logging | ||
|
||
|
||
log = logging.getLogger() |
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,5 +1,5 @@ | ||
import sys | ||
import importlib | ||
import sys | ||
|
||
|
||
def bypass_compiler_fixup(cmd, args): | ||
|
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
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
Oops, something went wrong.