We already have Python3's interpreter at this point, and there are some
distributions such as Gentoo which ship without the python3.pc file
(preferring to instead distribute more finer-grained stuff). Let's make
life easier on these platforms by obtaining prefix through invoking
Python's native functions.
The sys.path is, ultimately, the place where Python looks for their
modules, anyway.
Please note that I haven't run autoreconf; my versions of the relevant autotools packages are different from what was used for files shipped in your git, and I didn't want to increase the diff churn.
We already have Python3's interpreter at this point, and there are some distributions such as Gentoo which ship without the python3.pc file (preferring to instead distribute more finer-grained stuff). Let's make life easier on these platforms by obtaining prefix through invoking Python's native functions.
The sys.path is, ultimately, the place where Python looks for their modules, anyway.