Avoid dependency on C++ compiler when not needed
Only test for a working C++ compiler when we're actually building Python extensions. This avoids the need for having a working C++ compiler, even when it's not used.
Only test for a working C++ compiler when we're actually building Python extensions. This avoids the need for having a working C++ compiler, even when it's not used.