2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Install gyp python dependencies in prepare.py

This commit is contained in:
Ilya Fedin
2022-12-19 14:43:55 +04:00
committed by John Preston
parent 6f88e46938
commit 5cbdc2f739
5 changed files with 14 additions and 11 deletions

View File

@@ -418,6 +418,15 @@ win:
SET PATH=%PATH_BACKUP_%
""", 'ThirdParty')
stage('python', """
version: """ + (subprocess.run(['python', '-V'], capture_output=True, env=modifiedEnv).stdout.decode().strip().split()[-1] if win else '0') + """
win:
python -m venv python
python\\Scripts\\activate.bat
pip install pywin32 six
deactivate
""", 'ThirdParty')
stage('NuGet', """
win:
mkdir NuGet
@@ -953,6 +962,8 @@ win:
) else (
SET "FolderPostfix="
)
depends:python/Scripts/activate.bat
%THIRDPARTY_DIR%\\python\\Scripts\\activate.bat
cd src\\client\\windows
gyp --no-circular-check breakpad_client.gyp --format=ninja
cd ..\\..
@@ -963,6 +974,8 @@ release:
gyp dump_syms.gyp --format=ninja
cd ..\\..\\..
ninja -C out/Release%FolderPostfix% dump_syms
win:
deactivate
mac:
git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss
cd src/third_party/lss