Installing data files into site-packages with setup.py
问题 I have a Python package with a standard setup.py installer but I cannot for the life of me get it to install some pre-defined configuration files into site-packages somewhere... my setup() function is called like this: setup( name='Hydrant', version=version, description=long_description, author='Scott Frazer', author_email='scott.d.frazer@gmail.com', packages=['hydrant'], package_data={'hydrant': ['sql/*.sql', 'hydrant.conf', 'hydrant.deploy']}, data_files=[('config', ['hydrant/hydrant.conf']