Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use shutil instead of disutils and fix template syntax #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

7 participants