Skip to content

Commit

Permalink
* Linux requires PATH environment variable. Fixes "gcc: fatal error: …
Browse files Browse the repository at this point in the history
…cannot execute 'cc1': execvp: No such file or directory"
  • Loading branch information
rclary authored and mrclary committed Jun 4, 2021
1 parent ea63ba1 commit 0a86039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder/utils/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
if os.name == 'nt':
REQ_ENV_VARS.extend(['PATH', 'SYSTEMROOT', 'SYSTEMDRIVE', 'USERPROFILE'])
elif sys.platform.startswith('linux'):
REQ_ENV_VARS.extend(['HOME', 'DISPLAY', 'XAUTHORITY'])
REQ_ENV_VARS.extend(['PATH', 'HOME', 'DISPLAY', 'XAUTHORITY'])
elif sys.platform == 'darwin':
REQ_ENV_VARS.extend(['HOME'])
REQ_ENV_VARS.extend(['PATH', 'HOME'])


class ProgramError(Exception):
Expand Down

0 comments on commit 0a86039

Please sign in to comment.