I'm doing a rebase after the upstream moves things from setup.py to CMakeLists.txt and…
- User
I'm doing a rebase after the upstream moves things from setup.py to CMakeLists.txt and python/build_helpers.py . Now read
git diff 4535fc2bdf~ 4535fc2bdffor the previous changes in this commit, and apply these changes in setup.py , CMakeLists.txt , or python/build_helpers.py . Assistant
I have successfully applied the changes from commit
4535fc2bdftopython/build_helpers.py, where the logic fromsetup.pyhas been moved.Here's a summary of the changes:
- Added
download_and_extract_archive: A new helper function to handle both.zipand.tararchives, including the fix for Python < 3.12 compatibility (tarfile.data_filter). - Updated
get_llvm_package_info: Added platform detection forAMD64(mapped tox64) and support forWindowssystem suffix. - Updated
_get_thirdparty_package_cmake_vars: Refactored to use the newdownload_and_extract_archivehelper, replacing the inline extraction logic. - Updated
download_and_copy:- Added support for
AMD64architecture. - Added support for
Windowsplatform. - Updated the URL handling to use
.zipfor Windows instead of.tar.xz. - Refactored to use
download_and_extract_archive.
- Added support for
The file
python/build_helpers.pyhas been updated and verified for syntax correctness.- Added
- User
Go on to the new commit. Use
git statusto see the commit to be applied, usegit showto show its content, and implement the changes in python/build_helpers.py . - User
Don't run
git rebase --continueunless I approve