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
be0a428e
Commit
be0a428e
authored
Jan 26, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reintroduced the names in Distutils for APIs that were relocated
parent
b9018c0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
sysconfig.py
sysconfig.py
+9
-0
util.py
util.py
+4
-0
No files found.
sysconfig.py
View file @
be0a428e
...
...
@@ -21,6 +21,15 @@ from warnings import warn
# to avoid this module to shadow it
_sysconfig
=
__import__
(
'sysconfig'
)
# names defined here to keep backward compatibility
# for APIs that were relocated
get_python_version
=
_sysconfig
.
get_python_version
get_config_h_filename
=
_sysconfig
.
get_config_h_filename
parse_config_h
=
_sysconfig
.
parse_config_h
get_config_vars
=
_sysconfig
.
get_config_vars
get_config_var
=
_sysconfig
.
get_config_var
from
distutils.ccompiler
import
customize_compiler
_DEPRECATION_MSG
=
(
"distutils.sysconfig.%s is deprecated. "
"Use the APIs provided by the sysconfig module instead"
)
...
...
util.py
View file @
be0a428e
...
...
@@ -17,6 +17,10 @@ from distutils.errors import DistutilsByteCompileError
_sysconfig
=
__import__
(
'sysconfig'
)
# kept for backward compatibility
# since this API was relocated
get_platform
=
_sysconfig
.
get_platform
def
convert_path
(
pathname
):
"""Return 'pathname' as a name that will work on the native filesystem.
...
...
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