RFC: Alternative for exemaker

Mads Kiilerich mads at kiilerich.com
Thu Jun 28 18:03:05 CDT 2012


Matt Mackall wrote, On 06/27/2012 03:00 AM:
> My only concern with using this for HackableMercurial is how it will 
> find the Python DLL we ship. 

I think we will need something similar to how exemaker parses the first 
'#!' line of the py script and uses it find the DLL. That would also 
help us cover the 'hackable' use case where Python isn't installed in 
PATH but hg.exe somehow is.

/me dreaming out loud and stating the obvious:

I would expect that something similar to 'make local' would create a 
hg.exe that would work by using the Python it finds in the environment 
and run './hg' and thus using './mercurial/'.

Something similar to 'make install' should of course install to some 
location and put a hg.exe and hgexe.py in a folder that could be 
included in PATH. But it would be nice if that .py included the path to 
python - just like it also should have 'libdir' set to point at the 
location of 'mercurial/'. That would make it possible to move hg.exe and 
hgexe.py around and place them in some folder already in PATH ... of 
course assuming they use absolute paths.

/Mads


More information about the Mercurial-devel mailing list