Question about PyPI and 'easy_install'

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • makoto kuwata

    Question about PyPI and 'easy_install'

    Hi,

    I have a trouble around PyPI and easy_install.

    I have developed OSS (Tenjin) and registered it to PyPI.


    But I can't install it by 'easy_install' command.

    $ easy_install Tenjin
    Searching for Tenjin
    Reading http://pypi.python.org/simple/Tenjin/
    Reading http://www.kuwata-lab.com/tenjin/
    No local packages or download links found for Tenjin
    error: Could not find suitable distribution for
    Requirement.par se('Tenjin')

    This error reports that download link is not found,
    but download url is described in the above web page.

    Could you help me why the above error happen?
    Is it required to set registered name (Tenjin) and
    package name (pyTenjin) into same name?

    --
    makoto kuwata

  • Richard Jones

    #2
    Re: Question about PyPI and 'easy_install'

    makoto kuwata wrote:
    Is it required to set registered name (Tenjin) and
    package name (pyTenjin) into same name?
    Yes.

    How did you upload those files with a different name to that pypi package?


    Richard

    Comment

    • makoto kuwata

      #3
      Re: Question about PyPI and 'easy_install'

      On 2008-02-25, Richard Jones <richardjo...@o ptushome.com.au wrote:
      makoto kuwata wrote:
      Is it required to set registered name (Tenjin) and
      package name (pyTenjin) into same name?
      >
      Yes.
      >
      Thank you, Richard.
      Your answer helps me very much.

      How did you upload those files with a different name to that pypi package?
      I have no magic. I uploaded file via uploader page of PyPI.

      --
      regards,
      makoto kuwata

      Comment

      • Vsevolod Balashov

        #4
        Re: Question about PyPI and 'easy_install'

        On Feb 24, 10:38 pm, makoto kuwata <k...@kuwata-lab.comwrote:
        Hi,
        >
        I have a trouble around PyPI and easy_install.
        >
        I have developed OSS (Tenjin) and registered it to PyPI.http://pypi.python.org/pypi/Tenjin/0.6.1
        >
        But I can't install it by 'easy_install' command.
        >
        Hi!

        I`m think this patch is helpful for you

        ---BEGIN PATCH---

        --- setup.py.orig 2007-10-23 03:54:18.000000 000 +0400
        +++ setup.py 2008-02-26 14:08:44.660000 000 +0300
        @@ -6,12 +6,10 @@


        import sys, re
        -if len(sys.argv) 1 and sys.argv[1] == 'egg_info':
        - from ez_setup import use_setuptools
        - use_setuptools( )
        -from distutils.core import setup
        +from ez_setup import use_setuptools
        +from setuptools import setup

        -name = 'pyTenjin'
        +name = 'Tenjin'
        version = '0.6.1'
        author = 'makoto kuwata'
        email = 'kwa@kuwata-lab.com'

        ---END PATCH---
        PS Thank you for excellent job.

        --
        Vsevolod Balashov

        Comment

        • makoto kuwata

          #5
          Re: Question about PyPI and 'easy_install'

          On 2008-02-26, Vsevolod Balashov <vsevolod.balas ...@gmail.comwr ote:
          >
          I`m think this patch is helpful for you
          >
          ---BEGIN PATCH---
          >
          --- setup.py.orig       2007-10-23 03:54:18.000000 000 +0400
          +++ setup.py    2008-02-26 14:08:44.660000 000 +0300
          @@ -6,12 +6,10 @@
          >
           import sys, re
          -if len(sys.argv) 1 and sys.argv[1] == 'egg_info':
          -    from ez_setup import use_setuptools
          -    use_setuptools( )
          -from distutils.core import setup
          +from ez_setup import use_setuptools
          +from setuptools import setup
          >
          -name     = 'pyTenjin'
          +name     = 'Tenjin'
           version  = '0.6.1'
           author   = 'makoto kuwata'
           email    = '...@kuwata-lab.com'
          >
          ---END PATCH---
          Thank you, Vsevolod.
          Your patch shows that both project name (Tenjin) and package name
          (pyTenjin)
          should be the same name.
          And, I'm afraid that your patch seems to require user to install
          setuptools.
          I want Tenjin to be install not only with easy_install but also
          without
          setuptools.

          --
          regards,
          makoto kuwata

          Comment

          • Richard Jones

            #6
            Re: Question about PyPI and 'easy_install'

            makoto kuwata wrote:
            Your patch shows that both project name (Tenjin) and package name
            (pyTenjin) should be the same name.
            And, I'm afraid that your patch seems to require user to install
            setuptools.
            I want Tenjin to be install not only with easy_install but also
            without setuptools.
            You should be able to just change the name and not need to use setuptools in
            the setup.py


            Richard


            Comment

            Working...