mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
Fix Python requirement for setuptools
This commit is contained in:
@@ -35,13 +35,6 @@ def escape_backslash(path):
|
||||
return path
|
||||
|
||||
|
||||
def is_virtualenv():
|
||||
"""Detects if current python is inside virtualenv, pyvenv (python 3.4-3.5) or venv"""
|
||||
|
||||
return (hasattr(sys, 'real_prefix') or
|
||||
(hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
idf_path = os.getenv("IDF_PATH")
|
||||
|
||||
@@ -97,12 +90,8 @@ if __name__ == "__main__":
|
||||
print("pacman -S mingw-w64-i686-python{}-setuptools".format(sys.version_info[0],))
|
||||
continue
|
||||
else:
|
||||
print('Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required'
|
||||
' packages.')
|
||||
print('Alternatively, you can run "{} -m pip install {}-r {}" for resolving the issue.'
|
||||
''.format(escape_backslash(sys.executable),
|
||||
'' if is_virtualenv() else '--user ',
|
||||
escape_backslash(args.requirements)))
|
||||
print('Please follow the instructions found in the "Set up the tools" section of '
|
||||
'ESP-IDF Getting Started Guide')
|
||||
sys.exit(1)
|
||||
|
||||
print('Python requirements from {} are satisfied.'.format(args.requirements))
|
||||
|
Reference in New Issue
Block a user