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

Suggestion: remove distutils dependency #33

Open
set-soft opened this issue Jun 30, 2022 · 1 comment
Open

Suggestion: remove distutils dependency #33

set-soft opened this issue Jun 30, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@set-soft
Copy link
Contributor

The following code uses distutils:

stdlib_dir = distutils.sysconfig.get_python_lib(standard_lib=True)

The distutils module is deprecated and will go away in 3.12.
Additionally, it isn't part of the Debian Python package, you must install a dependency (python3-distutils).

What about the following?:

stdlib_dir = os.path.dirname(os.__file__)

I think is safe to assume that the os module comes from the standard lib.

@Technologicat
Copy link
Owner

Yes, sounds reasonable.

Let's change this in the next version.

(Sorry I missed this earlier - I've been away from mcpyrate for a while.)

@Technologicat Technologicat added the enhancement New feature or request label Nov 16, 2022
@Technologicat Technologicat self-assigned this Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants