Question

Apologies if this has been asked before but I couldn't for the life of me find an answer to what seems (to me) like a very basic question.

I have a set of .egg packages that do not contain the source (e.g. there is no setup.py file). I need to register and upload these packages to our inhouse pypi repository. Is there any way to do this, short of manually copying the package into the pypi repository directory and manually inserting the entries into the pypi db?

Était-ce utile?

La solution

You'll need to manually register these.

You can, however, use the PyPI web interface to do this. The central PyPI server has a Package submission link in the left-hand menu bar, leading to http://pypi.python.org/pypi?%3Aaction=submit_form, presumably your local installation has the same.

Your .eggs are either directories, or zip files. If it is not a directory, you need to unzip the file to look inside (create a copy that you rename to have a .zip extension if that'll make it easier for your tools to recognize it as a zip file).

You'll find a EGG-INFO subdirectory inside the egg, and inside of that you'll find a PKG-INFO file. You can upload this file to the package submission form to replace the setup.py register command.

Once registered, the web UI lets you navigate to the package, from there to the files section of a specific package and upload the egg file.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top