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

TST: avoid distutils.sysconfig in runtests.py #19628

Merged
merged 3 commits into from
Aug 11, 2021
Merged

Conversation

mattip
Copy link
Member

@mattip mattip commented Aug 8, 2021

Python 3.10 raises a DeprecationWarning on distutils. There is an alternative in sysconfig.

sysconfig.get_path('platlib', expand=False) returns a templated string like '{platbase}/lib/python{py_version_short}/site-packages', so expand it with str.format(platbase=..., py_version_short=...)

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Aug 11, 2021
@charris charris merged commit 334428c into numpy:main Aug 11, 2021
@charris
Copy link
Member

charris commented Aug 11, 2021

Thanks Matti.

charris pushed a commit to charris/numpy that referenced this pull request Aug 11, 2021
* TST: avoid distutils.sysconfig in runtests.py

* fix for platlibdir (new in python3.9)

* linting
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 11, 2021
@mattip mattip deleted the sysconfig branch January 25, 2022 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants