Convert a ZenPack to Development Mode

From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search

In the case that you lost the original ZenPack source and must work from an egg file, the following simple method will allow you to convert an egg file installation back to development mode. This will allow you to make changes to the ZenPack and export it again to an egg afterwards.

  1. Install the egg with the zenpack --install command.
  2. Restart Zope with "zopectl restart" (or restart zenwebserver if you are an enterprise user).
  3. Copy the ZenPack development files into the egg's directory (ignore the messages about it omitting directories):
    • cp $ZENHOME/Products/ZenModel/ZenPackTemplate/* $ZENHOME/ZenPacks/ZenPacks.PACKAGE.PACKNAME/
  4. Go into the ZenPack from the ZenPacks section under Advanced -> Settings.
  5. Increment the version number and click save. You can return it to the previous version number afterwards and click save again. This step forces it to populate the zenpack template files that you copied over with the correct information.
  6. Modify the ZenPack
  7. Export the ZenPack