fix setup.py chicken'n egg problem

This fixes #18984.

cc @thatch45