Question about PyPI and 'easy_install'

M

makoto kuwata

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.

$ 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.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?
 
R

Richard Jones

makoto said:
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
 
V

Vsevolod Balashov

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.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 = '(e-mail address removed)'

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

makoto kuwata

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    = '(e-mail address removed)'

---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.
 
R

Richard Jones

makoto said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,732
Latest member
ArronPalin

Latest Threads

Top