Skip to content

Commit

Permalink
Fix AttributeError when sysconfig does not supply platsubdir
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile authored and FFY00 committed Dec 22, 2021
1 parent eba2bcd commit 5ed4fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def finalize_options(self):
'platlibdir': getattr(sys, 'platlibdir', 'lib'),
'implementation_lower': _get_implementation().lower(),
'implementation': _get_implementation(),
'platsubdir': sysconfig.get_config_var('platsubdir'),
'platsubdir': sysconfig.get_config_var('platsubdir') or '',
}

if HAS_USER_SITE:
Expand Down

0 comments on commit 5ed4fe5

Please sign in to comment.