From: Terry C. <ter...@gm...> - 2015-03-14 14:22:28
|
Hi all, I am attempting to package a py2exe app that relies on a third party dependency that has non .py files. In this case it is a .c/.h file that gets compiled at build time. The .c/.h files is opened by a .py file with the following snippet. with open(os.path.join(os.path.dirname(__file__), "src/padding.h")) as f: Everything works fine running Python normally but falls apart upon py2exe packaging because the .c and .h files goes missing. I found some documentation[0] that shows how to get arbitrary files packaged under py2exe but that does not work if the non .py files are in the dependencies instead of the project being packaged. Is there a solution to this? I am open to having changes being made to the setup.py files of the dependencies if required. [0]: http://www.py2exe.org/index.cgi/AddingConfigFiles |