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

Removed distutils dependency #281

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

avinashlalotra
Copy link
Contributor

shutil can be used in place of distutils .

Related Issues

issue 277

Purpose

To completely remove dependency on the deprecated distutils API and ensure the eSim project is aligned with modern Python practices by using shutil.which for executable checks.

Approach

The distutils library has been deprecated in newer Python versions, and while previous updates have transitioned to using setuptools, one file still incorrectly references distutils. This PR addresses the issue by:

  • Removing distutils Dependency : Eliminates the use of distutils.spawn.find_executable in the codebase.

  • Updating to Modern Practice: Replaces distutils checks with shutil.which, which is the recommended approach for checking executable paths.

Installation Script Update: We can then remove the distutils installation command from the installation script, ensuring there are no lingering dependencies on the deprecated library.

#Verification:

A search using grep confirmed that distutils is only used in the updated file. Please review and verify if there are any other instances of distutils in the codebase to ensure complete removal.
This change modernizes the codebase and aligns it with current best practices, avoiding issues related to deprecated libraries.

shutil can be used in place of distutils .
@Eyantra698Sumanto Eyantra698Sumanto merged commit 5865b5d into FOSSEE:master Sep 12, 2024
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.

2 participants