Installation of Python packages on Windows CE

View: New views
3 Messages — Rating Filter:   Alert me  

Installation of Python packages on Windows CE

by Thomas Heller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://mail.python.org/mailman/listinfo/pythonce

Re: Installation of Python packages on Windows CE

by John Hampton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://mail.python.org/mailman/listinfo/pythonce

Re: Installation of Python packages on Windows CE

by jabapyth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the default install location for python is \Program Files\Python25 -- not \Program Files\Python\Python25

On Fri, Aug 15, 2008 at 5:52 PM, John Hampton <pacopablo@...> wrote:
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@...
http://mail.python.org/mailman/listinfo/pythonce


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