Using setuptools to install files to arbitrary locations
问题 Is there a way to install files to arbitrary locations with setuptools? I've used Data Files with setuptools before, but those are typically installed inside the package directory. I need to install a plugin file that will be located in the install directory of another application. 回答1: The data_files attribute will allow you to specify full paths. You could also do some shutil.copy magic in your setup.py, except don't. 回答2: It seems that setuptools has purposely made it difficult to install