From ef357fdf3667f3ded03203fc0f7cdec48a01ad8f Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:17:39 -0500 Subject: 1.21.5 (#198) * 25w02a * move item_components codegen to a different module * remove outdated test * 25w03a * start updating to 24w09b * 1.21.5-pre2 * fix broken packets * 1.21.5-rc2 * merge main * delete unused acket_handling * 1.21.5 --- codegen/lib/extract.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'codegen/lib/extract.py') diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py index c62b2b99..564133e2 100755 --- a/codegen/lib/extract.py +++ b/codegen/lib/extract.py @@ -85,8 +85,7 @@ def run_python_command_and_download_deps(command): break missing_lib = regex_match.group(1) print('Missing required lib:', missing_lib) - os.system( - f'{determine_python_command()} -m pip install {missing_lib}') + subprocess.run(f'venv/bin/pip install {missing_lib}', cwd=os.path.dirname(os.path.dirname(__file__))) print('ok') @@ -99,7 +98,7 @@ def get_burger_data_for_version(version_id: str): print('\033[92mRunning Burger...\033[m') run_python_command_and_download_deps( f'cd {get_dir_location("__cache__/Burger")} && '\ - f'{determine_python_command()} munch.py {get_dir_location("__cache__")}/client-{version_id}.jar '\ + f'venv/bin/python munch.py {get_dir_location("__cache__")}/client-{version_id}.jar '\ f'--output {get_dir_location("__cache__")}/burger-{version_id}.json '\ f'--mappings {get_dir_location("__cache__")}/mappings-{version_id}.txt' ) -- cgit v1.2.3