Cross-platform distribution

Rob

> Last example I exprienced with, Peppy. I just wanted to have a look and test if
> it is compliant with European keyboards (STC story). It requires to "be
> installed" in site-packages

> No, it doesn't. As the README says, I don't recommend putting it in
site-packages.

Thanks for the reply. I'm really glad to see we are speaking the "same
language" (btw, mine is French). You are right, the README file I have
read indicates this. In my hurry, I stopped my reading at the
$ python setup.py install
line.

> Untar it and run it right out of the peppy-0.6.5
> directory with python peppy.py.

This is what I have done. unfortunately I get this

>c:\python25\pythonw -u "peppy.py"
Traceback (most recent call last):
   File "peppy.py", line 8, in <module>
     import peppy.main
   File "C:\jm\nonjmpy\wxAppTierces\peppy63\peppy-0.6.5.tar\peppy-0.6.5\peppy\main.py", line 16, in <module>
     from peppy.yapsy.plugins import *
   File "C:\jm\nonjmpy\wxAppTierces\peppy63\peppy-0.6.5.tar\peppy-0.6.5\peppy\yapsy\__init__.py", line 13, in <module>
     from peppy.about import AddCredit
   File "C:\jm\nonjmpy\wxAppTierces\peppy63\peppy-0.6.5.tar\peppy-0.6.5\peppy\about.py", line 16, in <module>
     from peppy.menu import *
   File "C:\jm\nonjmpy\wxAppTierces\peppy63\peppy-0.6.5.tar\peppy-0.6.5\peppy\menu.py", line 18, in <module>
     from lib.iconstorage import *
ImportError: No module named lib.iconstorage
>Exit code: 1

which indicates the main module has somehow difficulties to find the requested
modules. Is the sys.path updated correctly ? To tell you the truth, I did not inspect your application further.

> There is a setup.py in there, but it doesn't mean it has to be used.

Right, but the problem here is in my mind a little bit different. When one
get an application with a "setup file". It sounds, one *have to* use this
setup. Usually, Python application/scripts do not need to be installed.
Providing a setup is a little be ambiguous. I fall in this trap.

Jean-Michel Fauth, Switzerland.

> Untar it and run it right out of the peppy-0.6.5
> directory with python peppy.py.

This is what I have done. unfortunately I get this
[...]
     from lib.iconstorage import *
ImportError: No module named lib.iconstorage
>Exit code: 1

which indicates the main module has somehow difficulties to find the requested
modules. Is the sys.path updated correctly ? To tell you the truth, I did not
inspect your application further.

Thanks for that -- it looks like sometimes I'm doing relative imports
rather than absolute imports, and there must be a path called lib
somewhere in your pythonpath. I changed to all absolute imports and
released a new patch version 0.6.5.1 which you can try if you get a
moment.

Right, but the problem here is in my mind a little bit different. When one
get an application with a "setup file". It sounds, one *have to* use this
setup. Usually, Python application/scripts do not need to be installed.
Providing a setup is a little be ambiguous. I fall in this trap.

I hear what you are saying -- setup.py and distutils are designed for
libraries. Python doesn't have an application package manager and
it's left to the operating system. I need the setup in order to
generate the py2exe version of the code, and additionally much of
peppy is designed to be used as a library. But, I agree that
application distribution isn't really what distutils is supposed to be
used for.

Thanks for the bug report.

Rob