Skip to content

Conversation

@Alec4r
Copy link
Member

@Alec4r Alec4r commented Jul 7, 2024

Description

This PR is for:

  1. fix the error that is appearing with the new python versions: I have changed the code to use shutil instead of distutils and I have refactored it.

File "/home/edunext/.local/share/pipx/venvs/tutor-version-manager/lib/python3.12/site-packages/tvm/environment_manager/infrastructure/environment_manager_git_repository.py", line 7, in <module> from distutils.dir_util import copy_tree # pylint: disable=W0402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'distutils'

  1. Fix the SyntaxWarning message:
    /home/edunext/Documents/eduNEXT/tvm/tvm/templates/tvm_activate.py:4: SyntaxWarning: invalid escape sequence '\$' TEMPLATE = '''

Copy link

@magajh magajh left a comment

Choose a reason for hiding this comment

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

@Alec4r, this looks good. Can we please update the cover letter to explain why we are using shutil instead of distutils?

@BryanttV
Copy link
Contributor

@Alec4r, From what I've been seeing distutils was removed in Python3.12. I think it's perfect to use shutil instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be necessary to make a bump version?

@mariajgrimaldi
Copy link

Hey @Alec4r, can we merge this PR since we have two approves already? Although there's a comment that needs to be addressed: #75 (comment)

@MaferMazu
Copy link
Contributor

Can we also add a test to python3.12 here: https://github.com/eduNEXT/tvm/blob/main/.github/workflows/tests.yml#L19 and improve the PR/commit message to show that we are supporting python3.12?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants