473,770 Members | 4,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?down load

</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 1447
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
1070
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 files also included in the package. These files are .pyc suffixed. I use subversion. I checked the setuptools'
1
1435
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
4216
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 pack a few modules, a few scripts, some resources files ( images ) and list a few dependencies ? I've searched google and the links I found seemed to be dead or not about setuptools at all, but as I allready mentioned; I might be loosing my mind...
2
2242
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: Priithon). For Priithon I put all modules/packages in a simple / single directory (tree) including one starting batch/script file. This script sets up PYTHONPATH to find modules at this place. It works fine for Windows,Linux and Mac-OSX. Now I...
0
1435
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 required to _install_ setuptools, I get this error: macbkpro1:~/Desktop/setuptools-0.6c7 ironfroggy$ python setup.py install Traceback (most recent call last): File "setup.py", line 7, in ? execfile(convert_path('setuptools/command/__init__.py'),...
7
2315
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 User-Agent: MicroPlanet-Gravity/2.70.2067 Hi, can anyone give me a short code snippet how to install a missing
5
2070
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' command. $ easy_install Tenjin
4
3382
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 which seems to be more more mature and usable. From my perspective, the relative immaturity of setuptools and its simultaneous widespread use is a clear python weakness and can make python less easy to absorb than it should be. A few...
1
1304
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 from the very beginning, moreover, if I click at one of them without pressing "CTRL" all my choices drops & I have to type it from the very beginning (I use Mozilla Firefox 3.0 but I don't think it's the matter). 2. Another issue: I have...
0
9602
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.