mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
sys.abiflags is not defined on all platforms.
This commit is contained in:
parent
d5eaa5fb5a
commit
bd86301070
1 changed files with 6 additions and 1 deletions
|
@ -313,6 +313,11 @@ class install(Command):
|
||||||
|
|
||||||
py_version = sys.version.split()[0]
|
py_version = sys.version.split()[0]
|
||||||
(prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
|
(prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
|
||||||
|
try:
|
||||||
|
abiflags = sys.abiflags
|
||||||
|
except AttributeError:
|
||||||
|
# sys.abiflags may not be defined on all platforms.
|
||||||
|
abiflags = ''
|
||||||
self.config_vars = {'dist_name': self.distribution.get_name(),
|
self.config_vars = {'dist_name': self.distribution.get_name(),
|
||||||
'dist_version': self.distribution.get_version(),
|
'dist_version': self.distribution.get_version(),
|
||||||
'dist_fullname': self.distribution.get_fullname(),
|
'dist_fullname': self.distribution.get_fullname(),
|
||||||
|
@ -323,7 +328,7 @@ class install(Command):
|
||||||
'prefix': prefix,
|
'prefix': prefix,
|
||||||
'sys_exec_prefix': exec_prefix,
|
'sys_exec_prefix': exec_prefix,
|
||||||
'exec_prefix': exec_prefix,
|
'exec_prefix': exec_prefix,
|
||||||
'abiflags': sys.abiflags,
|
'abiflags': abiflags,
|
||||||
}
|
}
|
||||||
|
|
||||||
if HAS_USER_SITE:
|
if HAS_USER_SITE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue