Hi,

Here is a _small_ patch to be able to use setuptools. It's an extension to 
distutils which allows great things like building a Python module into a ZIP 
archive called an egg.

With my patch, you can use: "./setup.py bdist_egg" and then upload the egg to 
the CheeseShop.

It would be great since the project Hachoir is using urwid and also use egg 
system :-) With setuptools, it's possible to install a program into $HOME: 
modules will be stored as ZIP archives (one egg by Python module), that 
rocks ;-)
--
Another patch: store urwid version in uwird/__init__.py. This may help 
setuptools... but i'm not sure of that :-) But it's also better to set 
__version__ variable.

Haypo
http://hachoir.org/
--- setup.py.old	2006-08-21 06:45:02.000000000 +0200
+++ setup.py	2006-08-21 06:46:45.000000000 +0200
@@ -19,7 +19,10 @@
 #
 # Urwid web site: http://excess.org/urwid/
 
-from distutils.core import setup
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 
 import os
 
--- urwid/__init__.py.old	2006-08-21 06:52:59.000000000 +0200
+++ urwid/__init__.py	2006-08-21 06:53:15.000000000 +0200
@@ -27,6 +27,7 @@
 	'AttrWrap','Padding','Divider',
 	'Canvas','CanvasCombine','CanvasJoin',
 	]
+__version__ = "0.9.5"


 from widget import *
--- setup.py.old	2006-08-21 06:54:40.000000000 +0200
+++ setup.py	2006-08-21 06:54:59.000000000 +0200
@@ -23,7 +23,8 @@

 import os

-release = "0.9.5"
+import urwid
+release = urwid.__version__

 setup_d = {
 	'name':"urwid",
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to