Consider the following python libray:
C:\Python33\Lib\site-packages\libfoo\
                                 |-- foo.py
                                 |-- lib
                                       |--- foo1.dll
                                       |--- foo2.dll

foo.py gets correctly frozen using a program that uses libfoo. Unfortunately 
I'm not able to package foo1.dll and foo2.dll (which are depedencies for 
foo.py) using cx_feeze.

Here is my setup.py where I included the DLLs to the included_files:

import os
import sys
from cx_Freeze import setup, Executable
from distutils.sysconfig import get_python_lib
exe = Executable(
    script = os.path.join("src", "main.py"),
    base = "Console",
    copyDependentFiles = True
,)
# libfoo
libfoo_path = os.path.join(get_python_lib(), "libfoo", "lib")
libfoo_files = [os.path.join(libfoo_path, "foo1.dll"), 
os.path.join(libabend_path, "foo1.dll")]
includes = []
includefiles = libfoo_files
packages = ["libfoo"]
setup(
    name = "Simple App with DLL",
    version = "1.0",
    description = "Simple App",
    executables = [exe],
    options = {"build_exe" : {"includes" : includes,
                              "include_files" : includefiles,
                              "packages": packages,},
              },
    zip_safe = False
)

Many thanks for help!
Best regards Robert

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to