Syntax error installing with easy_install

Martin Geisler mg at lazybytes.net
Wed Dec 23 09:12:12 UTC 2009


Daniel Serodio <nabble.dserodio at neverbox.com> writes:

> Martin Geisler-4 wrote:
>> 
>> Daniel Serodio <nabble.dserodio at neverbox.com> writes:
>> 
>>> Thanks for the clarification. Shouldn't the setup script detect this
>>> broken requirement and report a more useful error message?
>> 
>> The setup.py script does actually have such a check:
>> 
>>   import sys
>>   if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0,
>> 'final'):
>>       raise SystemExit("Mercurial requires Python 2.4 or later.")
>> 
>> Does that not work on your system?
>> 
>
> How odd, it doesn't work in setup.py but if I type this exact same
> code in the Python shell it errors as expected...

Hmm, that is strange...

>>> And shouldn't this requirement be stated in the download page or
>>> similar?
>> 
>> It does say 'Requirements: Python 2.4' beneath the big blue download
>> button on the homepage:
>> 
>>   http://mercurial.selenic.com/
>> 
>> Did you download from some other source where it's not present?
>> 
> You're right, I had followed the instructions on some Mercurial
> tutorial for easy_install'ing it but hadn't checked Mercurial's
> homepage yet.

Ah, okay :-) It would be helpful if you could leave a common on the
tutorial about this (if you can still find it).

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20091223/73dcf9bb/attachment.asc>


More information about the Mercurial mailing list