How can i bundle other files when using cx_freeze?
Posted
by Mridang Agarwalla
on Stack Overflow
See other posts from Stack Overflow
or by Mridang Agarwalla
Published on 2010-03-31T14:44:12Z
Indexed on
2010/05/23
17:41 UTC
Read the original article
Hit count: 450
I'm using Python 2.6 and cx_Freeze 4.1.2 on a Windows system. I've created the setup.py to build my executable and everything works fine.
When cx_Freeze runs it movies everything to the build directory. I have some other files that i would like included in my build directory. How can i do this? Here's my structure.
src\
setup.py
janitor.py
README.txt
CHNAGELOG.txt
helpers\
uncompress\
unRAR.exe
unzip.exe
Here's my snippet:
setup
( name='Janitor', version='1.0', description='Janitor', author='John Doe', author_email='[email protected]', url='http://www.this-page-intentionally-left-blank.org/', data_files = [ ('helpers\uncompress', ['helpers\uncompress\unzip.exe']), ('helpers\uncompress', ['helpers\uncompress\unRAR.exe']), ('', ['README.txt']) ], executables = [ Executable\ ( 'janitor.py', #initScript ) ] )
I can't seem to get this to work. Do i need a MANIFEST.in file?
Thank you.
© Stack Overflow or respective owner