Jey Robert,
I'm not a(french)n expert but I think there's a misunderstanding
with the [include_files] option. It's dedicated to data files
(configuration files, log files, image resources and so on) to be
copyed in the output compilation directory.
I think you should try the [includes] option instead.
Best regards
On 07/23/2013 08:27 AM, Robert Schilling wrote:
I'm trying to bundle a large scale python application using cx_freeze.
My applycation has a similar layout as the folllowing (more complex):
src
setup.py
main.py
version.py
control
__init__.py
controller1.py
controller2.py
lib
__init__.py
lib1
__init__py
lib1_1.py
lib1_2.py
lib2
__init__.py
lib2_1.py
lib2_2.py
ui
__init__.py
widget1.py
widget2.py
tools
tool1.exe
Currently I use releative imports. For example if I want to include a `widget1` in `controller1` I write
from src.ui.widget1 import Widget1 # Assumung the class named this inside
But this doesn't work yet with `cx_freeze`. Consider following `setup.py`
import sys
from cx_Freeze import setup, Executable
exe = Executable(
script="main.py",
base="Win32GUI"
)
includefiles = ["re", "sip", "PyQt4.QtCore", "src.ui.widet", "src.version"]
setup(
name = "MyApp",
version = "1.0",
description = "MyApp.",
executables = [exe],
options = {"build_exe": {"includes":includes, "include_files": includefiles}},
)
How do I get track of the absolute imports?
Thank you in advance!
Regards Robert
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
|
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users