Skip to content

Commit 19ed440

Browse files
Microsoft python detection. previously it was not detecting microsoft store version of python (#165)
Co-authored-by: n.savichev <n.savichev@gaijin.team>
1 parent 6ae9529 commit 19ed440

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

make_devtools.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,15 @@ def download_url(url):
119119
make_file_link(python_dest_folder+'/python.exe', python_dest_folder+'/python3.exe')
120120
else:
121121
error("Python 3 not found")
122-
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', '--upgrade', 'pip'])
123-
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', '--version'])
124-
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', 'clang==14.0.6'])
125-
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', 'cymbal'])
126-
122+
123+
if 'WindowsApps' in python_src_folder:
124+
print('WARNING: Detected Microsoft Store Python. Skipping pip upgrade/install due to access restrictions.')
125+
print('Install official Python from python.org for full functionality.')
126+
else:
127+
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', '--upgrade', 'pip'])
128+
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', '--version'])
129+
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', 'clang==14.0.6'])
130+
subprocess.run([python_dest_folder+'/python.exe', '-m', 'pip', 'install', 'cymbal'])
127131

128132
microsoft_retry = []
129133

0 commit comments

Comments
 (0)