py2exe + SQLite problem
Thomas Heller
theller at python.net
Sat Jan 31 10:12:17 EST 2009
Armin schrieb:
> As posted before ... set's my script (python 2.3):
>
> from distutils.core import setup
> import py2exe
>
> 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
>From the Python docs (chapter 'writing the setup script):
"""
data_files specifies a sequence of (directory, files) pairs in the following way:
setup(...,
data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
('config', ['cfg/data.cfg']),
('/etc/init.d', ['init-script'])]
)
"""
So, it looks like you should use
> setup(windows=['dpconf.py'],
> data_files=[("", ["proj_db","gsd_db","dachs2.xbm"])]
^ ^
> )
Thomas
More information about the Python-list
mailing list