Why is my python egg not working? - No distributions found at all

I made a distribution of my python package with the following setup.py

#!/usr/bin/env python

from setuptools import setup

setup(name='mypackagename',
      version='0.1',
      description='Tool ....',
      author='Peter Smit',
      author_email='lala@lala.com',
      packages=['mypackagename'],
      package_dir={'': 'src'},
      install_requires=['boto'],
      entry_points = dict(console_scripts=[
        'mypackagenamescript = mypackagename.launcher:run',
        ])
      )

I created an egg with python setup.py bdist_egg.

Trying to install it now with pip gives the following error:

bin/pip install mypackagename-0.1-py2.6.egg 
Downloading/unpacking mypackagename-0.1-py2.6.egg
  Could not find any downloads that satisfy the requirement mypackagename-0.1-    py2.6.egg
No distributions at all found for mypackagename-0.1-py2.6.egg

Saving full login /home/peter/.pip/pip.log

The indicated log files showed that he was trying to download the package from pypi, where it clearly does not exist.

What did I do wrong? How can I install this my egg plus its addiction?

+5
source share
3 answers

why not use setuptools easy_install ?

easy_install mypackagename-0.1-py2.6.egg 

If you want to work with eggs, that's right.

+2
source

pip .

, PyPI, . pip install myproject. PyPI, , .

setup.py , , , python setup.py install. pip easy_install.

. .

+2

. , . Pyg. get-pyg.py script :

$ curl -O https://raw.github.com/rubik/pyg/master/get-pyg.py
$ python get-pyg.py
Retrieving archive from ... etc.

. easy_install pip.

:

$ pyg install mypackagename-0.1-py2.6.egg

Pyg supports virtualenv too.

Rubik

+2
source

All Articles