473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

improving pypi / setuptools

Due to a recent site overhaul by sourceforge certain files linked to
from pypi won't install. For example, in trying to install all the
dependencies for the subway web framework, I got this kind of error:

<snip>
..
..
..
Searching for CherryPy>=2.1.0-rc1
Reading http://www.python.org/pypi/CherryPy/
Reading http://www.cherrypy.org
Reading http://sourceforge.net/project/showf...group_id=56099
Best match: CherryPy 2.1.0-rc2
Downloading
http://prdownloads.sourceforge.net/c....1.0-rc2.tar.g
z?download
error: Unexpected HTML page found at
http://prdownloads.sourceforge.net/cherrypy
/CherryPy-2.1.0-rc2.tar.gz?download

</snip>

Unless I am mistaken, this seems like a problem due to a dependency on
screen scraping to get the location of the file. If this is the case,
IMHO it is too fragile.

What ideas do people out there have for making the installation of
python module more reliable?

Just to get the ball rolling, here are two suggestions:

[1] If setuptools encounters an error in retrieving a dependency from
its registered location (off python.org), it falls back to a canonical
URL that serves it from pypi, an email is then dispatched to uploader /
module maintainer, etc...

So I when I register the location of my python module on pypi, I also
upload a copy to pypi. This can serve as a permanent repository for all
python modules and versions, but because it is only used as a fallback
server, bandwidth use and therefore cost will be manageable.

[2] Create an alia for easy_install.py : egg.py

This not really a reliability tweek, its just a memory tweek.

The advantage of this is to save the installer a few
keystrokes, and to relate the installation command
to that which is installed.

Furthermore, I won't be jealous of ruby's little "gem"
command anymore. (-;
AK

Nov 30 '05 #1
3 1427
Alia Khouri wrote:
What ideas do people out there have for making the installation of
python module more reliable?


judging from the support load it's causing me these days, setuptools is a
piece of utter crap. if you want to make things reliable, don't use it.

(if the various "rails" cloners want people to use their stuff, it would be a
lot better is they shipped complete and well-tested source code kits, and
left the packaging to the huge crowd of nice, friendly, and competent
downstream packagers that exist for all major platforms these days. the
downstream folks know what they're doing, and the tools they're using
happens to work. both for the maintainers and for the users.)

</F>

Nov 30 '05 #2
On Wed, Nov 30, 2005 at 11:49:14AM +0100, Fredrik Lundh wrote:
Alia Khouri wrote:
What ideas do people out there have for making the installation of
python module more reliable?
judging from the support load it's causing me these days, setuptools is a
piece of utter crap. if you want to make things reliable, don't use it.

setuptools is still alpha. Give it another 6months to a year and you will
wonder how we ever got along without it.

(if the various "rails" cloners want people to use their stuff, it would be a
lot better is they shipped complete and well-tested source code kits, and
left the packaging to the huge crowd of nice, friendly, and competent
downstream packagers that exist for all major platforms these days. the Which downstream packager exists for Windows, or is Windows not a major
platform anymore? Besides many useful modules are not important enough to be
picked up by packagers for some distributions. For instance, Gentoo does not
have RuleDispatch. downstream folks know what they're doing, and the tools they're using
happens to work. both for the maintainers and for the users.)

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Nov 30 '05 #3
It is still early days for setuptools... still, we are lagging behind
the ruby world in this regards.

I definitely agree with you that the so-called megaframeworks need to
be packaged better (especially all versions of the different components
being updated on almost daily basis).

AK

Dec 1 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: limodou | last post by:
I'm new to setuptools. One question is: Recently I want to use setuptools for a project. My command line is just like : python setup.py sdist --formats=gztar But I found some deleted...
1
by: Ilias Lazaridis | last post by:
If I understood things right, setuptools extends the functionality of distutils Thus replacing within a setup.py: from distutils.core import setup with try:
1
by: Thomas W | last post by:
I'm might just be dumb, but I cannot get the hang of usting setuptools based on the docs at http://peak.telecommunity.com/DevCenter/setuptools. Is there a simple example available showing how to...
2
by: seb.haase | last post by:
Hi, I am distributing a package with a precompiled collection of modules and packages useful for Python based medical/biological/astronomical image analysis and algorithm development. (Codename:...
0
by: Calvin Spealman | last post by:
I am trying to install the newest setuptools on my macbook. 2.3 was installed by default, and 2.4 is installed and is my default version now. However, when I try to import setuptools, which is...
7
by: Thorsten Kampe | last post by:
Date: Fri, 23 Nov 2007 19:35:21 -0000 Message-ID: <MPG.21b13bd5fda74bd3989729@news.individual.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit...
5
by: makoto kuwata | last post by:
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'...
4
by: Alia Khouri | last post by:
Can we open up the discussion here about how to improve setuptools which has become the de facto standard for distributing / installing python software. I've been playing around with ruby's gems...
1
by: dmitrey | last post by:
hi all, 1. when I commit a new release to PYPI, I can use stored data (by my browser: Name, package summary, keywords etc), but in the last line (classification) I had to chose all those lines...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.