1.0 approaches

Shun-ichi GOTO shunichi.goto at gmail.com
Thu Mar 13 01:12:46 CDT 2008


2008/3/13, Patrick Mézard <pmezard at gmail.com>:
> Ralf Schmitt a écrit :
>
> >
>  > I think it would be nice if mercurial would be installable with
>  > easy_install.

If we support easy_install, I'd like to have following patch (as sample)
to makes hg.exe (and hg-script.py). I guess it makes win32 users using
hg easier.  Note that this patch needs "mercurial/script.py" which is
copied from "hg" script in root.

diff -r a375ffc2aa1b setup.py
--- a/setup.py  Wed Mar 12 15:44:08 2008 -0700
+++ b/setup.py  Thu Mar 13 14:59:52 2008 +0900
@@ -92,4 +92,7 @@
                                    license='COPYING',
                                    readme='contrib/macosx/Readme.html',
                                    welcome='contrib/macosx/Welcome.html')),
+      entry_points = """
+       [console_scripts]
+       hg = mercurial.script""",
       **extra)

-- 
Shun-ichi GOTO



More information about the Mercurial mailing list