py2exe + SQLite problem

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 31 10:15:35 EST 2009


En Sat, 31 Jan 2009 11:51:16 -0200, Armin <a at nospam.org> escribió:
> Gabriel Genellina wrote:
>> En Fri, 30 Jan 2009 09:50:08 -0200, Armin <a at nospam.org> 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...

-- 
Gabriel Genellina




More information about the Python-list mailing list