diff options
author | pje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2005-09-24 17:28:56 +0000 |
---|---|---|
committer | pje <pje@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2005-09-24 17:28:56 +0000 |
commit | 3dee91619b79fd5932bdc192f3d9a583e263e6b7 (patch) | |
tree | 68c6deed0bbe538ae34fd703dfd7902ab9cdd5ae /easy_install.py | |
parent | 10ff83770638089f0df268e97d5156147369c128 (diff) | |
download | python-setuptools-3dee91619b79fd5932bdc192f3d9a583e263e6b7.tar.gz |
Improve backward compatibility, so that users running easy_install.py or
python -m easy_install get a clearer error message.
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41249 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'easy_install.py')
-rwxr-xr-x | easy_install.py | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/easy_install.py b/easy_install.py index bc2270c..feb2632 100755 --- a/easy_install.py +++ b/easy_install.py @@ -1,22 +1,15 @@ #!python """\ - -Easy Install ------------- - -A tool for doing automatic download/extract/build of distutils-based Python -packages. For detailed documentation, see the accompanying EasyInstall.txt -file, or visit the `EasyInstall home page`__. - -__ http://peak.telecommunity.com/DevCenter/EasyInstall +This script/module exists for backward compatibility only! It will go away +entirely in 0.7. Please start using the 'easy_install' script or .exe instead +of using 'python -m easy_install' or running 'easy_install.py' directly. """ -import sys -from setuptools.command.easy_install import * - if __name__ == '__main__': - print >>sys.stderr, "NOTE: python -m easy_install is deprecated." - print >>sys.stderr, "Please use the 'easy_install' command instead." - print >>sys.stderr - main(sys.argv[1:]) + import sys + print >>sys.stderr, \ + "Please use the 'easy_install' script or executable instead." + print >>sys.stderr, \ + "(i.e., don't include the '.py' extension and don't use 'python -m')" + sys.exit(2) |