Re: [Rest2web-develop] setuptools support
Brought to you by:
mjfoord
From: Michael F. <fuz...@gm...> - 2006-05-08 21:29:08
|
On 08/05/06, Matthew Scott <ms...@sp...> wrote: > > > Michael, et al... Hello Matthew, I've created a patch against rest2web subversion revision 173 to give > it setuptools support, since I am experimenting with using it to > create websites for several projects. > > Since it involves moving files as well as some small patches, I've > decided to post the individual steps I took here, with patches > attached, rather than go through the SourceForge process. > > With these patches, you can use both both "python setup.py develop" > and "easy_install ." as long as you have setuptools installed. I'll > admit that I haven't done much with macros yet though, so I don't > know how well those are supported. Basic operation seems to work > fine though. > > I'm of course interested in seeing this support directly folded into > rest2web, but if not, I'll keep my own version updated if there are > outstanding issues that prevent it from being merged. :) I'm keen to support setuptools, however it sounds like there is a bit of refactoring needed to make that possible. First of all, we shouldn't move pythonutils into a sub-folder of rest2web. Instead I should release a more up to date version and provide eggs. We can then make rest2web depend on pythonutils. I'm glad you are working from SVN. Presumably you have dealt with the fact that it has a 'plugins' subdirectory and a 'defaults' subdirectory, both of which need to be preserved ? 'r2w.py' is the rest2web script, so it shouldn't be moved into the rest2web directory (or egg) but put in a sensible location. r2w.py should work normally then (since it imports rest2web which should then be on sys.path). If we can resolve these issues then we should be able to eggify rest2web. Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml ------------------------------------------------------------------------ > r216 | mscott | 2006-05-05 15:24:25 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > D /sandbox/mscott/rest2web-173/pythonutils > A /sandbox/mscott/rest2web-173/rest2web/pythonutils (from / > sandbox/mscott/rest2web-173/pythonutils:215) > > Move pythonutils package to subpackage of rest2web > > > > ------------------------------------------------------------------------ > r217 | mscott | 2006-05-05 15:32:40 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > D /sandbox/mscott/rest2web-173/r2w.py > A /sandbox/mscott/rest2web-173/rest2web/r2w.py (from /sandbox/ > mscott/rest2web-173/r2w.py:215) > > Move r2w.py script to submodule of rest2web package > > > > ------------------------------------------------------------------------ > r218 | mscott | 2006-05-05 15:32:56 -0500 (Fri, 05 May 2006) | 1 line > Changed paths: > A /sandbox/mscott/rest2web-173/setup.py > > Add a setup.py that uses setuptools > > (see attachment setup.py) > > > > > ------------------------------------------------------------------------ > r220 | mscott | 2006-05-05 15:41:33 -0500 (Fri, 05 May 2006) | 3 lines > Changed paths: > M /sandbox/mscott/rest2web-173/rest2web/r2w.py > > Modify r2w script to work with the console_scripts entry point > defined in setup.py > > (see attachment r2w.py.patch) > > > > > > Thanks, > > -- > Matthew Scott > ms...@sp... > > > > > > > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fictio= n and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |