Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > DrPython and py2exe

Reply
Thread Tools

DrPython and py2exe

 
 
Armin
Guest
Posts: n/a
 
      02-01-2009

Hello,

Thanks to all ... it's working now !

Google isn't always your friend I found in the net a lot but wrong
examples for specification of "data_files". Now I have the correct one.

Best Regards

--Armin



Gabriel Genellina wrote:
> En Sat, 31 Jan 2009 11:51:16 -0200, Armin <(E-Mail Removed)> escribió:
>> Gabriel Genellina wrote:
>>> En Fri, 30 Jan 2009 09:50:08 -0200, Armin <(E-Mail Removed)> escribió:

>
>>> Right at the end: "To install data files directly in the target
>>> directory, an empty string should be given as the directory."
>>> setup(...,
>>> data_files=[
>>> ('', ['list/of/file/names',
>>> 'perhaps/including/source/directory']),
>>> ]
>>> )
>>>

>> Yes ... so far the theory
>>
>> As posted before ... set's my script (python 2.3):

>
> You didn't tell us that you were using version 2.3 -- it's important, as
> the current stable releases are 2.6 and 3.0. Anyway, this should work in
> 2.3 too.
>
>> from distutils.core import setup
>> import py2exe
>>
>> setup(windows=['dpconf.py'],
>> data_files=[ "", ["proj_db","gsd_db","dachs2.xbm"]]
>> )
>>

>
> Comparing my example and yours, you lack a parenthesis level:
>
> setup(windows=['dpconf.py'],
> data_files=[("", ["proj_db","gsd_db","dachs2.xbm"])]
> )
>
>> When I create the distribution I got the following err msg:
>>
>> *** copy data files ***
>> warning: install_data: setup script did not provide a directory for ''
>> -- installing right in 'C:\pyDPCONF.2.3-dev\dist'
>> error: can't copy '': doesn't exist or not a regular file
>>
>> Looks a little bit inconsistent ?

>
> O thou of little faith, try again...
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DrPython debugger Pandiani Python 6 09-09-2005 03:26 PM
How to use DrPython plugins Laszlo Zsolt Nagy Python 3 08-08-2005 09:17 AM
Adapt PyShell's code completion into DrPython dcrespo Python 0 05-09-2005 03:17 PM
wxpython on cygwin for drPython - ImportError: No module named _core_ Stephane Roy Python 3 05-04-2005 07:41 AM
running a python script in drpython john Python 2 03-13-2005 10:29 PM



Advertisments