[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Question about PyPI and 'easy_install'

Makoto Kuwata

2/25/2008 3:38:00 AM

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/Te...

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

$ easy_install Tenjin
Searching for Tenjin
Reading http://pypi.python.org/simp...
Reading http://www.kuwata-lab.c...
No local packages or download links found for Tenjin
error: Could not find suitable distribution for
Requirement.parse('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

5 Answers

Richard Jones

2/25/2008 10:30:00 AM

0

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

Makoto Kuwata

2/25/2008 12:12:00 PM

0

On 2008-02-25, Richard Jones <richardjo...@optushome.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

Vsevolod Balashov

2/26/2008 11:03:00 AM

0

On Feb 24, 10:38 pm, makoto kuwata <k...@kuwata-lab.com> wrote:
> 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/Te...
>
> 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.000000000 +0400
+++ setup.py 2008-02-26 14:08:44.660000000 +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
http://vsevolod.bal...

Makoto Kuwata

2/26/2008 11:26:00 PM

0

On 2008-02-26, Vsevolod Balashov <vsevolod.balas...@gmail.com> wrote:
>
> I`m think this patch is helpful for you
>
> ---BEGIN PATCH---
>
> --- setup.py.orig       2007-10-23 03:54:18.000000000 +0400
> +++ setup.py    2008-02-26 14:08:44.660000000 +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

Richard Jones

2/28/2008 9:29:00 AM

0

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