How do I make setup.py include a file that isn't part of the code? (Specifically, it's a license file, but it could be any other thing.)
1 Answer
http://docs.python.org/distutils/setupscript.html#installing-additional-files is all you should need.
Since you mentioned a license file, you can include additional meta-data (such as a license) this way.
1 Comment
Jonathan Hartley
'data_files' is kinda broken I think, because it installs the files in a system-wide location, not associated with my project files, and this location changes depending on whether the user installs my package using "setup.py install" or "pip install". So my code can't then find the files. I guess I could try to search both locations at runtime. Do people really do this?