diff --git a/python/llm/setup.py b/python/llm/setup.py index 8f1e43f7..8913a758 100644 --- a/python/llm/setup.py +++ b/python/llm/setup.py @@ -223,6 +223,13 @@ def setup_package(): for url in lib_urls[platform_name]: download_libs(url, change_permission=change_permission) + + # Check if all package files are ready + for file in package_data[platform_name]: + file_path = os.path.join(libs_dir, os.path.basename(file)) + if not os.path.exists(file_path): + print(f'Could not find package dependency file: {file_path}') + raise FileNotFoundError(f'Could not find package dependency file: {file_path}') all_requires = ['py-cpuinfo'] all_requires += CONVERT_DEP