I don't know if you've had luck with this, but sometimes problems like
this relate to problems importing __init__. ImportErrors in __init__.py
sometimes get swallowed, so they don't keep submodules from being
importable. But this can cause confusion. Probably the problem isn't
find_packages (if it is, you can look at what in your application is
installed, to see if something is missing, or even print out what
find_packages returns, as it's just a list of strings).
Lukasz Szybalski wrote:
> Hello,
>
> Could you guys explain how sub folders get installed and entry point
> search is performed?
> Here is a problem.
>
> I have a project that uses custom setup.py which I want to convert to
> the way paster would create it, but I get import error
>
> from myapp.lib.event import *
> ImportError: No module named lib.event
>
>
> Here is my setup.py:
> packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
> package_data = {'myapp' : ['ui/templates/*.html', 'ui/templates/content/*']},
>
> I was under the impression that find_packages will do what I need?!!
>
> How can I properly setup the subfolders, I assume I need to put
> something in __init__.py in every subfolder? But what?
>
>
> This is the final structure?!!! What should be in __init__.py files?
>
> myapp
> |-- __init__.py
> |-- __init__.pyc
> |-- lib
> | |-- __init__.py
> | |-- __init__.pyc
> | `-- event.py
>
> Ideas?
>
> Lucas
>
> _______________________________________________
> Paste-users mailing list
> [email protected]
> http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users