[Python-Dev] Setup script for Tools/compiler (etc.)
Greg Ward
gward@mems-exchange.org
Fri, 8 Sep 2000 08:59:30 -0400
Jeremy --
it seems to me that there ought to be a setup script in Tools/compiler;
it may not be part of the standard library, but at least it ought to
support the standard installation scheme.
So here it is:
#!/usr/bin/env python
from distutils.core import setup
setup(name = "compiler",
version = "?",
author = "Jeremy Hylton",
author_email = "jeremy@beopen.com",
packages = ["compiler"])
Do you want to check it in or shall I? ;-)
Also -- and this is the reason I cc'd python-dev -- there are probably
other useful hacks in Tools that should have setup scripts. I'm
thinking most prominently of IDLE; as near as I can tell, the only way
to install IDLE is to manually copy Tools/idle/*.py to
<prefix>/lib/python{1.6,2.0}/site-packages/idle and then write a little
shell script to launch it for you, eg:
#!/bin/sh
# GPW 2000/07/10 ("strongly inspired" by Red Hat's IDLE script ;-)
exec /depot/plat/packages/python-2.0b1/bin/python \
/depot/plat/packages/python-2.0b1/lib/python2.0/site-packages/idle/idle.py $*
This is, of course, completely BOGUS! Users should not have to write
shell scripts just to install and run IDLE in a sensible way. I would
be happy to write a setup script that makes it easy to install
Tools/idle as a "third-party" module distribution, complete with a
launch script, if there's interest. Oh hell, maybe I'll do it
anyways... just howl if you don't think I should check it in.
Greg
--
Greg Ward - software developer gward@mems-exchange.org
MEMS Exchange / CNRI voice: +1-703-262-5376
Reston, Virginia, USA fax: +1-703-262-5367