I was able to make a simple example with cx_freeze.
However, I fail with a example which has a depedency to a DLL.
However, I fail with a example which has a depedency to a DLL.
Consider the following library:
libfoo
|-- __init__.py
|-- foo.py
|-- foo.dll
libfoo
|-- __init__.py
|-- foo.py
|-- foo.dll
My program uses this library with:
from libfoo.foo import bar
bar()
bar() loads foo.dll inside.
When I freeze this program with cx_freeze foo.py gets copied but foo.dll is missing.
Here is my setup.py
Here is my setup.py
import os, sys
from cx_Freeze import setup, Executable
from cx_Freeze import setup, Executable
start_script = os.path.join("src", "main.py")
exe = Executable(
script = start_script,
base = "Console",
copyDependentFiles = True)
script = start_script,
base = "Console",
copyDependentFiles = True)
setup(
name = "Simple App with DLL",
version = "1.0",
description = "Simple App",
executables = [exe],
scripts = [start_script],
options = {"build_exe" : {"includes" : []],
"include_files" : []],
"packages": ["liobfoo"]]}},
zip_safe = False
)
What have to change to get this working with the DLL?
Thank you in advance!
Robert
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
