bpo-40947: getpath.c uses PyConfig.platlibdir#20807
bpo-40947: getpath.c uses PyConfig.platlibdir#20807vstinner merged 1 commit intopython:masterfrom vstinner:getpath_platlibdir
Conversation
|
Thanks, looks good to me! |
Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should be replaced by config->platlibdir. test_sys checks that sys.platlibdir attribute exists and is a string. Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR macro, PyConfig.platlibdir member is used instead. Co-Authored-by: Sandro Mani <manisandro@gmail.com>
Thanks for the review. I updated the PR to make further cleanup changes and add an unit test in test_sys. |
|
Oh, the Travis CI job didn't start :-( Let me try to close/reopen the PR. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
Sorry, @vstinner, I could not cleanly backport this to |
|
|
GH-20813 is a backport of this pull request to the 3.9 branch. |
Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should be replaced by config->platlibdir. test_sys checks that sys.platlibdir attribute exists and is a string. Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR macro, PyConfig.platlibdir member is used instead. Co-authored-by: Sandro Mani <manisandro@gmail.com> (cherry picked from commit d72b964)
Followup of bpo-40854, there is one remaining usage of PLATLIBDIR
which should be replaced by config->platlibdir.
Co-Authored-by: Sandro Mani manisandro@gmail.com
https://bugs.python.org/issue40947