From d94b0495341ee50de40046dae2d3e70158def1b7 Mon Sep 17 00:00:00 2001 From: elie Date: Sun, 28 May 2006 20:26:18 +0000 Subject: playing with setuptools --- setup.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 36a9800..19eb815 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,22 @@ #!/usr/bin/env python -from distutils.core import setup +import sys + +def howto_install_setuptools(): + print """Error: You need setuptools Python package! + +It's very easy to install it, just type (as root on Linux): + wget http://peak.telecommunity.com/dist/ez_setup.py + python ez_setup.py +""" + +try: + from setuptools import setup +except ImportError: + for arg in sys.argv: + if "egg" in arg: + howto_install_setuptools() + sys.exit(1) + from distutils.core import setup setup(name="pyasn1", version="0.0.5a", -- cgit v1.2.1