Skip to content

Commit

Permalink
Skip non-string values from sysconfig.get_config_vars()
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 1, 2022
1 parent b2ba0e3 commit ee8ed62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,9 @@ def create_home_path(self):
if not self.user:
return
home = convert_path(os.path.expanduser("~"))
for name, path in self.config_vars.items():
for path in self.config_vars.values():
if not isinstance(path, str):
continue
if path.startswith(home) and not os.path.isdir(path):
self.debug_print("os.makedirs('%s', 0o700)" % path)
os.makedirs(path, 0o700)
Expand Down

0 comments on commit ee8ed62

Please sign in to comment.