diff options
author | elie <elie> | 2010-07-08 21:12:50 +0000 |
---|---|---|
committer | elie <elie> | 2010-07-08 21:12:50 +0000 |
commit | 2689deb812a7e75476f56867062e11db9acc3838 (patch) | |
tree | 4690cbe1c13a0c977e5cebf7673214c6496e8229 /setup.py | |
parent | c09cb9b40cffc13d1d2e6c33e10a559d7f304f2e (diff) | |
download | pysnmp-2689deb812a7e75476f56867062e11db9acc3838.tar.gz |
fix to egg detection
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ #!/usr/bin/env python import sys +import string def howto_install_setuptools(): print """Error: You need setuptools Python package! @@ -13,7 +14,7 @@ try: from setuptools import setup except ImportError: for arg in sys.argv: - if "egg" in arg: + if string.find(arg, 'egg') == -1: howto_install_setuptools() sys.exit(1) from distutils.core import setup |