I’m working on a website project.
When I use setup.py and run setup.py build, the build script excludes all of the resources in my web site (basically all of the non python files). What am I doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The most reliable way I’ve found to include extra files in a distribution using distutils is to provide a MANIFEST.in file. Place this file in the same directory as your
setup.pyand include in it the list of resource files you require. For example, yourMANIFEST.infile might like this:See the distutils documentation for more details.
Though I prefer the MANIFEST.in method, if you are using setuptools or distribute, have a look at this answer for an alternative method of doing the same thing.