From 673ac23e93f64a287c16a0d0ea45ba9ab9379d2d Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sat, 17 Sep 2005 01:13:02 +0000 Subject: Added support to solve the infamous "we want .py on Windows, no extension elsewhere" problem, while also bypassing the need for PATHEXT on Windows, and in fact the need to even write script files at all, for any platform. Instead, you define "entry points" in your setup script, in this case the names of the scripts you want (without extensions) and the functions that should be imported and run to implement the scripts. Setuptools will then generate platform-appropriate script files at install time, including an .exe wrapper when installing on Windows. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041246 --- easy_install.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'easy_install.py') diff --git a/easy_install.py b/easy_install.py index 4b204c47..bc2270c0 100755 --- a/easy_install.py +++ b/easy_install.py @@ -15,5 +15,8 @@ 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:]) -- cgit v1.2.3