py2exe + SQLite problem

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jan 30 08:09:13 EST 2009


En Fri, 30 Jan 2009 09:50:08 -0200, Armin <a at nospam.org> escribió:
> Gabriel Genellina wrote:
>> En Thu, 29 Jan 2009 13:05:11 -0200, Armin <a at nospam.org> escribió:
>>
>>  Did you solve this problem? As you posted 4 related messages and the  
>> last one might imply a solution to this first one...
>
> Yes, the distutil option 'data_files' failed to copy the database files  
> to the dist directory. All dbopen calls have created empty db files ...
>
> PS: any comments on the data_files issue ??

Yes: read the section "Installing Additional Files" in the "Distributing  
Python Modules" document
http://docs.python.org/distutils/setupscript.html#installing-additional-files

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']),
            ]
      )

-- 
Gabriel Genellina




More information about the Python-list mailing list