On Mon, Aug 23, 2010 at 3:49 AM, Didrik Pinte <[email protected]> wrote:
>  Le 23/08/2010 11:46, Ludovic Granjon a écrit :
>>
>> Thank you Didrik
>>
>> You are probably right, but how can I include geos ?
>> For example, my setup.py for cx_freeze is :
>>
>> from cx_Freeze import setup, Executable
>>
>> executables = [
>>        Executable("ana.py")]
>>
>> buildOptions = dict(
>>        compressed = True,
>>        includes = ["shapely"])
>>
>> setup(
>>        name = "ana_test",
>>        version = "0.1",
>>        description = "test",
>>        options = dict(build_exe = buildOptions),
>>        executables = executables)
>>
>> After build, in library.zip I have a shapely directory with a geos.pyc
>> file.
>> Is that I miss something ?
>
> Yes, you should have a geos.dll file. I do not remember where that one is
> stored but for hydroplatform, using bbfreeze, I had to automate the process
> of adding this file after the freeze.
>
> -- Didrik
>

Shapely's Windows installers include a GEOS DLL and distutils copies
it to your Python's DLLs directory. See

http://github.com/sgillies/shapely/blob/master/setup.py

I don't have any experience with cx_Freeze, but maybe it can take it from there?

-- 
Sean

Reply via email to