In this post, the answer is for the output path of .c files.
.c
I want to know how can I output all the .pyd file to a specific directory (by
.pyd
You can pass the command-line argument --build-lib your/desired/output/path to the python invocation which executes setup.py.
--build-lib your/desired/output/path
python
setup.py
Also, this option is not compatible with --inplace. If you're using that, remove it.
--inplace