mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't obfuscate internal distutils attributes
Related to #21559, fixes #21522.
This commit is contained in:
parent
979ed6628e
commit
e6f8ea3c7c
1 changed files with 7 additions and 7 deletions
14
setup.py
14
setup.py
|
@ -531,12 +531,12 @@ class SaltDistribution(distutils.dist.Distribution):
|
|||
self.ssh_packaging = PACKAGED_FOR_SALT_SSH
|
||||
self.salt_transport = None
|
||||
|
||||
self.name = 'salt-ssh' if PACKAGED_FOR_SALT_SSH else 'salt'
|
||||
self.salt_name = 'salt-ssh' if PACKAGED_FOR_SALT_SSH else 'salt'
|
||||
self.salt_version = __version__ # pylint: disable=undefined-variable
|
||||
self.description = 'Portable, distributed, remote execution and configuration management system'
|
||||
self.author = 'Thomas S Hatch'
|
||||
self.author_email = 'thatch45@gmail.com'
|
||||
self.url = 'http://saltstack.org'
|
||||
self.salt_description = 'Portable, distributed, remote execution and configuration management system'
|
||||
self.salt_author = 'Thomas S Hatch'
|
||||
self.salt_author_email = 'thatch45@gmail.com'
|
||||
self.salt_url = 'http://saltstack.org'
|
||||
self.cmdclass.update({'test': TestCommand,
|
||||
'clean': Clean,
|
||||
'build': Build,
|
||||
|
@ -562,8 +562,8 @@ class SaltDistribution(distutils.dist.Distribution):
|
|||
attrvalue = getattr(self, attrname, None)
|
||||
if attrvalue == 0:
|
||||
continue
|
||||
if attrname == 'salt_version':
|
||||
attrname = 'version'
|
||||
if attrname.startswith('salt_'):
|
||||
attrname = attrname.split('salt_')[1]
|
||||
if hasattr(self.metadata, 'set_{0}'.format(attrname)):
|
||||
getattr(self.metadata, 'set_{0}'.format(attrname))(attrvalue)
|
||||
elif hasattr(self.metadata, attrname):
|
||||
|
|
Loading…
Add table
Reference in a new issue