Single-line setuptools install
For those of you just starting out with setuptools, here's a quick way to install it. After running this, you'll have access to easy_install for all of your other installation needs:
python -c "import urllib; urllib.main()" \ http://peak.telecommunity.com/dist/ez_setup.py \ | python - -U setuptools
Note that this will execute Python code from a remote host without any kind of authenticity check. Use at your own risk. Only tested on Mac OS X, FreeBSD, and Linux (with Python 2.3 and 2.4).
Please note that ‘python -c “import urllib; urllib.main()”‘ can be shortened to simply ‘python -murllib’.
David.
Comment by David Wilson — 2006-01-17 @ 5:44 pm
Python’s -m flag only works in Python 2.4 and later. I refrained from mentioning it because Python 2.3 is supported by setuptools and I wanted to keep it short and simple.
Comment by bob — 2006-01-17 @ 6:39 pm