setuptools for mercurial-0.9.5

Steve Borho steve at borho.org
Tue Oct 16 23:11:11 CDT 2007


On Tue, 2007-10-16 at 21:15 +1000, James Mills wrote:
> Hi all,
> 
> Can we please include my patch for setuptools support
> for the upcoming 0.9.5 release. I plan to improve and
> work on TortoiseHg and improve it's useability and
> installation and setuptools support for Mercurial
> will greatly assist with this.

This patch would probably gain more traction if it didn't outright
require everyone to have setuptools installed in order to build
Mercurial.  The patch should at least fallback to the standard distutils
when setuptools isn't installed.  I have mixed feelings about it myself.

When I need to generate an egg or an MSI, I simply copy in an alternate
version of setup.py that I've hacked up to use setuptools:

% wget http://hg.borho.org/hg-nsi/raw-file/tip/setup-msi.py
% python setup-msi.py bdist_msi

Since setup-msi.py was never tracked by the hg repo it doesn't affect
the output of 'hg id', so the resultant package will still report the
correct version number.

Hope that helps,

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C



More information about the Mercurial-devel mailing list