If it's an autoconf project you should be able to (as far as I recall) pass appropriate min version and architecture flags to ./configure
Python bundles a bunch of modules one may not need for embedding in either case, and they can be turned into byte code before distribution.