specify *.pyd output path?

2020-04-30 02:59发布

问题:

In this post, the answer is for the output path of .c files.

I want to know how can I output all the .pyd file to a specific directory (by default, it mingles with the source code), for example, the directory pyd/ in the source code.

回答1:

You can pass the command-line argument --build-lib your/desired/output/path to the python invocation which executes setup.py.

Also, this option is not compatible with --inplace. If you're using that, remove it.