Skip to content

Conversation

@xin3he
Copy link
Contributor

@xin3he xin3he commented Apr 23, 2025

Discussed with @ulivne
This is not a good approach because it can introduce changes to the development environment and cause unintentional commits.

@xin3he xin3he requested review from XuehaoSun and Copilot April 23, 2025 05:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts the dynamic removal of content in the installation files that was previously implemented to adjust behavior based on the installed version. Key changes include:

  • Removal of functions that alter file content in setup.py.
  • Removal of dynamic delete calls in the "pt" and "tf" branches of get_build_version.
  • Addition of a clarifying comment in neural_compressor/init.py.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
setup.py Reverts dynamic manipulation of file content for versioning.
neural_compressor/init.py Adds a comment regarding the need for a global 'NA' backend.
Files not reviewed (1)
  • .azure-pipelines/scripts/ut/3x/collect_log_3x.sh: Language not supported
Comments suppressed due to low confidence (1)

setup.py:112

  • The else branch in get_build_version still calls replace_lines_from_file, but its definition has been removed in this PR. Please update or remove this call to ensure that the function is not referenced.
replace_lines_from_file(*content_position, backup_content)

@XuehaoSun XuehaoSun merged commit fc93c0e into master Apr 25, 2025
45 of 47 checks passed
@XuehaoSun XuehaoSun deleted the revert-2173-xinhe/init branch April 25, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants