egg

Problem accessing config files within a Python egg

I have a Python project that has the following structure: package1 class.py class2.py ... package2 otherClass.py otherClass2.py ... config dev_settings.ini prod_settings.ini I wrote a setup.py file that converts this into an egg with the same file structure. (When I examine it using a zip program the structure seems id...

How to easy_install egg plugin and load it without restarting application?

I'm creating an app that downloads and installs its own egg plugins, but I have a problem loading the egg after easy_install extracts it into place. This is how it works now: App downloads egg into temp folder Installs egg with setuptools.command.easy_install.main() into ~/.app/plugins folder (which is pointed by a pth on dist-packages...

Why does my svn:externals folder not get included in my egg?

I've got a project structure as follows: ProjFolder\project\ |__init__.py |main.py |... |data\ |settings.dtd |archs\ |arch1.arc ... ...

python setup.py bdist_egg Not Setting Up Requirements for Package

I have a Pylons app that I am ready to deploy for the first time to production. It has a simple set of requirements listed in setup.py: install_requires=[ "Pylons>=1.0", "Jinja2", "couchdb", "python-openid", ], When I run "python setup.py bdist_egg" it seems to create the egg file properly. When I copy the egg file to ...

How to access files inside a python egg file?

Folks This might be a weird requirement but it's what I've run into. I googled but yield nothing. I'm coding an application who's using a lot of constant attributes / values recorded in a XML file (they'll not change so a static file), things work fine until I generated an egg file for it. When the logic reaches the xml accessing par...

Including mercurial extensions from eggs

Is there some way to import an extension from an .egg file? For example hggit installs itself as hg_git-0.2.4-py2.5.egg, which cannot be listed under [extensions] directly, or it's interpreted as a standard .py file. Is there some way to include that file as an extension? Alternatively, is there some way to install hg-git manually in a...

How to install Trac Plugin and what is a python egg?

In Trac on Admin -> Plugins there is an option to install Plug-ins. Now this option expect you to upload an Python egg. This would be all well but for the fact that all the Trac plug-ins I found are either plain .py files or zip files and are incompatible with the upload function (I tried it). This leaves my with a bunch of questions: ...

How to update a file in python egg

We are using trac. In our setup we have a problem that is solved in repository. So I got the fixed file commit_update.py from the repository and I need to place it into Trac-0.12-py2.6.egg. As egg is just a ziped filed I just unziped it, changed the file and ziped again. After restarting trac, I've got a an error message: ExtractionErr...

How to import module in parent folder not working in egg

My project has the following structure: setup.py project/ __init__.py main.py errors.py lib/ li1b.py lib2.py I'm importing the errors module with from . errors import Error1, Error2, Error3 which works fine when running the program with python main.py. However when I build and install it as an egg with ...