At 04:21 PM 10/5/2010 +0200, Roberto Riggio wrote:
Hi,
I'm not sure if I'm doing something wrong, anyway, I want to
copy the content of a directory included in a package generated with
./setup sdist to a certain destination.
What I did is to add something like this to my setup.py:
data_files = [('etc/foo/www/', [ 'dashboard/*' ])]
Just to put things into a context: the directory dashboard contains a
number of html files that are served by my application. I cannot list
all the files one by one because are too many, but also the apprach
that I'm using does not work and produce the following error:
error: can't copy dashboard/*: doesn't not exist or not a regular file
Any suggestions?
data_files = [('etc/foo/www/', ['dashboard/'+f for f in
os.listdir('dashboard')])]
(I would also question the idea of targeting installation directories
in this way for a general-use package, but that's a separate issue.)
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig