FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't use deprecated distutils module. by sebastic · Pull Request #267 · mapnik/python-mapnik · GitHub

Don't use deprecated distutils module. - #267

Open
sebastic wants to merge 1 commit into
mapnik:masterfrom
sebastic:no-distutils
Open

Don't use deprecated distutils module.#267
sebastic wants to merge 1 commit into
mapnik:masterfrom
sebastic:no-distutils

Conversation

Copy link
Copy Markdown
Contributor

build.py & setup.py still use the deprecated distutils which will be removed in Python 3.12.

From What’s New In Python 3.10:

The entire distutils package is deprecated, to be removed in Python 3.12. Its functionality for specifying package builds has already been completely replaced by third-party packages setuptools and packaging, and most other commonly used APIs are available elsewhere in the standard library (such as platform, shutil, subprocess or sysconfig). There are no plans to migrate any other functionality from distutils, and applications that are using other functions should plan to make private copies of the code. Refer to PEP 632 for discussion.

Porting from Distutils has no suggestions for distutils.sysconfig, but sysconfig is a reasonable alternative.

The _config_vars dict does not exist in the stdlib sysconfig module, hence the removal of the buildflag modifications in setup.py.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL