Including non-Python files with setup.py
Posted
by cool-RR
on Stack Overflow
See other posts from Stack Overflow
or by cool-RR
Published on 2009-10-23T11:04:57Z
Indexed on
2010/06/15
4:02 UTC
Read the original article
Hit count: 194
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.)
I want to be able to control the location of the file. In the original source folder, the file is in the root of the package. (i.e. on the same level as the topmost __init__.py
.) I want it to stay exactly there when the package is installed, regardless of operating system. How do I do that?
© Stack Overflow or respective owner