Hackable mercurial based on python 2.7

Angel Ezquerra angel.ezquerra at gmail.com
Mon Jun 25 02:04:45 CDT 2012


On Mon, Jun 25, 2012 at 8:55 AM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> On 2012-06-25 07:50, Angel Ezquerra wrote:
>> On Mon, Jun 25, 2012 at 12:59 AM, Adrian Buehlmann <adrian at cadifra.com> wrote:
>>> On 2012-06-19 08:16, Angel Ezquerra wrote:
>>>> Matt,
>>>>
>>>> Steve has just released the first TortoiseHg and mercurial installer
>>>> nightly builds which are based on Python 2.7. I believe the plan is to
>>>> only release 2.7 builds from now on (Steve, please correct me if I'm
>>>> wrong).
>>>>
>>>> I wonder, do you have any plans to move the hackable mercurial package
>>>> to 2.7 as well?
>>>
>>> Angel, do you have x64 Windows?
>>>
>>> I've just uploaded
>>>
>>>  hg-hackable-x64-python27-ec5ef276077f-1.7z
>>>
>>> to https://bitbucket.org/abuehl/downloads/downloads
>>>
>>> It includes my latest hg.exe.
>>>
>>> It does not include Python, so you need to install that separately
>>> (requires Python 2.7).
>>
>> Adrian,
>>
>> I guess this needs the x64 version of Python 2.7?
>
> Yes, it requires a x64 Python installed.
>
> I use the official
> http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi
>
> $ python
> Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit
> (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>>
>
> Install it "for all users of this computer", if you can (that is, if you
> have admin rights on that computer, which I bet you have, since
> installing TortoiseHg requires admin rights too for installing. [And no,
> I won't help changing that for those whining about it each time I
> mention it]).
>
> Running python-2.7.3.amd64.msi also won't change the PATH. I recommend
> you let install it into C:\python27_x64 or something similar (I forgot
> what the default is, that the installer proposes. It may already be
> that). Double-click python-2.7.3.amd64.msi to start the installation and
> then go through the dialogs (accept the UAC admin prompt). It's a
> familiar msi installer, like the one of TortoiseHg.
>
> It will install python27.dll in C:\Windows\system32 if you let install
> it "for all users of this computer" (I think that's the default), so it
> can be easily found by every program that links to it (like my hg.exe).
>
> AMD64 is just the 64-bit processor architecture, it doesn't require an
> AMD CPU. Intel will do fine (in the past, there was also another 64-bit
> architecture, IA64).
>
>> I'm on 64 bit windows 7,
>
> Nice. So you have AMD64 architecture hardware (like many people do
> today). Start using it! :-)
>
>> and I have python 2.7 installer, but it is a x32 version
>> (actually it is the Enthough's Distribution Python 2.7 version). When
>> I run your hg.exe I get:
>>
>> ImportError: No module named site
>
> See above.
>

I'm using a 32 bit python on a 64 bit OS because some important python
packages do not work for 64 bit Python yet. Particularly, I don't
think there are official packages for numpy, scipy and matplotlib,
which I use.

Anyway, I'll give this a try, but I will probably need to go back to
32 bit python afterwards.

Angel


More information about the Mercurial-devel mailing list