469,580 Members | 1,865 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,580 developers. It's quick & easy.

distutils setup.py

I'm having trouble getting the data_files argument of my setup.py to
work with "python setup.py sdist" under Windows XP. Here is the
data_files argument that I pass to setup().

data_files = [\
('res','app.ico'),
('', 'preferences.xml'),
('res', glob.glob(os.path.join('res','*.png')))],
)

My setup.py is in the same directory as "preferences.xml". I use this
setup.py for both py2exe and sdist. When I use it for py2exe, the
data_files are properly copied to the target directory. However, when I
use it for sdist, none of the data_files are copied. If this were a
directory problem, then setup.py would have failed earlier when I
specified Application.py in the "scripts" argument.

How can I get the data_files copied properly without having to manually
edit the MANIFEST file?

Thanks,
Saketh

Aug 7 '06 #1
0 1004

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Johan Svedberg | last post: by
1 post views Thread by Mathieu Malaterre | last post: by
15 posts views Thread by Colin J. Williams | last post: by
1 post views Thread by Terry Hancock | last post: by
5 posts views Thread by Fuzzyman | last post: by
reply views Thread by Maarten Sneep | last post: by
reply views Thread by Glenn Pierce | last post: by
1 post views Thread by George van den Driessche | last post: by
6 posts views Thread by ajikoe | last post: by
reply views Thread by newbie73 | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.