Search code examples
pythondistributionegg

I created a Python egg; now what?


I've finally figured out how to create a Python egg and gotten it to work. Now... what do I do with it? How do I use it? How do I ensure that everything was correctly included? (Simple steps please... not just redirection to another site. I've googled, but it's confusing me, and I was hoping someone could explain it in a couple of simple bullet points or sentences.)

Edit:

I asked this question a couple of weeks ago, and I'm clarifying now in the hope of getting clearer answers... basically, I have an egg, I want to take it to another machine and be able to use it and import modules from it from my (other, unrelated) code. How do I do this?


Solution

  • What I ended up doing was:

    1. Ran PYTHONPATH=fullPathOfMyEgg in command line
    2. Was then able to do import someModuleInMyEgg from my Python code

    I'm not sure if this is the most standard or accepted way to do it, but it worked. If anyone has any comments or other methods, please feel free to add...