[PythonCE] Installation of Python packages on Windows CE

2008-08-15 Thread Thomas Heller
How should Python packages be installed on Windows CE?

The context is that I am preparing a new release of comtypes.

I have learned so far on this list that a CAB file is a convenient way
to install software, but my question is what should this cab file create:

- as usual on Windows, a directory tree containing .py files in \Program 
Files\Python\Python25

or

- a zipfile in \Program Files\Python\Python25 which would be put on sys.path
  by a .pth file in the same directory and imported by the zipimport mechanism?

  For the zip-file, there are again several possibilities:

  - should the zipfile be compressed to save space or not?  I'm not
sure if decompressing slows down importing or not...

  - Should the zipfile contain only .pyc files to save space, but
then source code is not available for tracebacks, for example

  - Should the zipfile contain only .py files to save space, but
importing would probably be slower because the modules have to
be recompiled every time Python uses them

  - Should the zipfile contain .py files plus .pyc files?

Or are there even other possibilities?

-- 
Thanks,
Thomas

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Installation of Python packages on Windows CE

2008-08-15 Thread John Hampton

Thomas Heller wrote:

I have learned so far on this list that a CAB file is a convenient way
to install software, but my question is what should this cab file create:

- as usual on Windows, a directory tree containing .py files in \Program 
Files\Python\Python25


This is the method that I would prefer.  A zipimport is neat, and could 
save space, but all the other issues I think out weigh the space savings 
that would come from zipimport.


I know that Alexandre has some code in ppygui to pull the location of 
the site-packages dir.


-John
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce