Don't install optional modules for prerelease versions

Doing otherwise creates a circular dependency: a module cannot support
an upcoming Python version without being able to test against it, and we
cannot provide that Python version if a module fails to install for it.

Ivan Pozdeev authored and committed

Nothing here #7762.7 failed

  • Ran for
AMD64
no language set
Git