Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
467915b9
Commit
467915b9
authored
Aug 31, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore compatibility with aix_support on Python 3.8 and earlier. Fixes pypa/setuptools#2358.
parent
db20067e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
distutils/py38compat.py
distutils/py38compat.py
+7
-0
distutils/util.py
distutils/util.py
+2
-2
No files found.
distutils/py38compat.py
0 → 100644
View file @
467915b9
def
aix_platform
(
osname
,
version
,
release
):
try
:
import
_aix_support
return
_aix_support
.
aix_platform
()
except
ImportError
:
pass
return
"%s-%s.%s"
%
(
osname
,
version
,
release
)
distutils/util.py
View file @
467915b9
...
@@ -79,8 +79,8 @@ def get_host_platform():
...
@@ -79,8 +79,8 @@ def get_host_platform():
machine
+=
".%s"
%
bitness
[
sys
.
maxsize
]
machine
+=
".%s"
%
bitness
[
sys
.
maxsize
]
# fall through to standard osname-release-machine representation
# fall through to standard osname-release-machine representation
elif
osname
[:
3
]
==
"aix"
:
elif
osname
[:
3
]
==
"aix"
:
from
_aix_suppor
t
import
aix_platform
from
.py38compa
t
import
aix_platform
return
aix_platform
()
return
aix_platform
(
osname
,
version
,
release
)
elif
osname
[:
6
]
==
"cygwin"
:
elif
osname
[:
6
]
==
"cygwin"
:
osname
=
"cygwin"
osname
=
"cygwin"
rel_re
=
re
.
compile
(
r'[\
d.]+
', re.ASCII)
rel_re
=
re
.
compile
(
r'[\
d.]+
', re.ASCII)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment