I have created a .egg with my framework and all other files in it. It has a __main__.py
If I unzip the egg and run the __main__.py manually with PYTHONPATH=. it all works fine.
$ python example_framework-1.0-py2.7.egg
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "example_framework-1.0-py2.7.egg/__main__.py", line 18, in <module>
File "example_framework-1.0-py2.7.egg/__main__.py", line 15, in main
....
....
File "/home/darren/seekr/local/lib/python2.7/site-packages/pelix/framework.py", line 1364, in install_bundle
return self.__framework.install_bundle(name, path)
File "/home/darren/seekr/local/lib/python2.7/site-packages/pelix/framework.py", line 735, in install_bundle
module = importlib.import_module(name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
IOError: zipimport: can not open file example_framework-1.0-py2.7.egg