python distutils does not include data_files
Posted
by StackUnderflow
on Stack Overflow
See other posts from Stack Overflow
or by StackUnderflow
Published on 2010-06-08T02:16:26Z
Indexed on
2010/06/08
2:32 UTC
Read the original article
Hit count: 276
I am new to distutils.. I am trying to include few data files along with the package.. here is my code..
from distutils.core import setup
setup(name='Scrapper',
version='1.0',
description='Scrapper',
packages=['app', 'db', 'model', 'util'],
data_files=[('app', ['app/scrapper.db'])]
)
The zip file created after executing python setup.py sdist
does not include the scrapper.db file. I have scrapper.db file in the app directory..
thanks for the help.
© Stack Overflow or respective owner