Issue105

Title Cheetah __future__ problem with Python 2.5
Priority bug Status chatting
Superseder Nosy List leif, p.friberg, tan2, willic3
Assigned To leif Topics Pyre

Created on 2007-04-19.21:15:47 by leif, last changed 2007-05-04.13:50:02 by willic3.

Files
File name Uploaded Type Edit
unnamed willic3, 2007-05-04.13:50:01 text/html
Messages
msg345 (view) Author: willic3 Date: 2007-05-04.13:50:02
Thanks, Leif.  I'll try a fresh install of everything and see how it  
works out.

Thanks,
Charles

On May 3, 2007, at 9:39 PM, Leif Strand "Roundup Issue Tracker" wrote:

>
> Leif Strand <leif@geodynamics.org> added the comment:
>
> Fixed by merlin v1.2.  Merlin now scans the "Merlin Package  
> Index" (in addition
> to PyPI) for additional download links.  (Note that you must nuke  
> any existing
> copies of merlin in order to force the new version of merlin to be  
> downloaded.)
>
> r6777
> r6772
> r6769
>
> Footnote:  the fact that 'dependency_links' doesn't work in the  
> recursive case
> should still be considered a bug.  However, the above fix is better  
> because
> fights fire with fire:  the wrong Cheetah was being downloaded  
> because of
> bogus/missing/incomplete info "out there" on the Internet; this fix  
> uses
> supplementary info "out there" on the Internet to address the  
> problem.  Similar
> problems can be addressed in the future for already-released  
> packages by simply
> updating the "Merlin Package Index" web page.
>
> ----------
> status: chatting -> resolved
>
> _____________________________________________________
> Roundup issue tracker <issue_tracker@geodynamics.org>
> <http://geodynamics.org/roundup/issues/issue105>
> _____________________________________________________
>

Charles A. Williams
Dept. of Earth & Environmental Sciences
Science Center, 2C01B
Rensselaer Polytechnic Institute
Troy, NY  12180
Phone:    (518) 276-3369
FAX:        (518) 276-2012
e-mail:    willic3@rpi.edu
msg344 (view) Author: leif Date: 2007-05-04.01:39:53
Fixed by merlin v1.2.  Merlin now scans the "Merlin Package Index" (in addition
to PyPI) for additional download links.  (Note that you must nuke any existing
copies of merlin in order to force the new version of merlin to be downloaded.)

r6777
r6772
r6769

Footnote:  the fact that 'dependency_links' doesn't work in the recursive case
should still be considered a bug.  However, the above fix is better because
fights fire with fire:  the wrong Cheetah was being downloaded because of
bogus/missing/incomplete info "out there" on the Internet; this fix uses
supplementary info "out there" on the Internet to address the problem.  Similar
problems can be addressed in the future for already-released packages by simply
updating the "Merlin Package Index" web page.
msg343 (view) Author: leif Date: 2007-05-03.21:50:12
I just verified that both setuptools v0.6c3 (upon which 'merlin' is based) and
the very latest setuptools v0.6c5 exhibit the same behavior: 'dependency_links'
is honored only in the top-level 'setup.py'.
msg342 (view) Author: leif Date: 2007-04-19.23:05:01
I tried adding 'dependency_links' to Pythia's setup.py 
(pythia-0.8.1.3b3), but Merlin (setuptools) completely ignores it. This 
is very frustrating.

BTW, the work-arounds are to install the latest Cheetah manually (I 
think "merlin install ." or "easy_install ." would do this with the 
proper egg-metadata), or (even easier) simply edit 'NameMapper.py' manually:

http://cheetahtemplate.cvs.sourceforge.net/cheetahtemplate/Cheetah/src/NameMapper.py?view=diff&r1=1.28&r2=1.29
msg341 (view) Author: tan2 Date: 2007-04-19.22:36:17
I am using Python 2.5 and Cheetah-2.0rc7 without problem.

Cheetah-2.0rc7 is here:
http://www.python.org/pypi/Cheetah/2.0rc7
msg340 (view) Author: leif Date: 2007-04-19.21:15:46
Beginning with version 2.5, Python is picky about __future__ imports, causing
problems with Cheetah:

  File
"/ibrixfs1/home/lstrand/dv/SPECFEM3D_GLOBE/python/Cheetah-1.0-py2.5-linux-x86_64.egg/Cheetah/NameMapper.py",
line 146
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file


This was fixed in Cheetah-2.0rc3. However, as of this writing, there is no
download link on the Cheetah 2.0rcX PyPI page:

http://www.python.org/pypi/Cheetah/2.0rc8

This causes the egg system to prefer Cheetah 1.0, which is incompatible with
Python 2.5.
History
Date User Action Args
2007-05-04 13:50:02willic3setfiles: + unnamed
status: resolved -> chatting
messages: + msg345
nosy: leif, tan2, willic3, p.friberg
2007-05-04 01:39:54leifsetstatus: chatting -> resolved
nosy: leif, tan2, willic3, p.friberg
messages: + msg344
2007-05-03 21:50:13leifsetnosy: + willic3, p.friberg
messages: + msg343
2007-04-19 23:05:01leifsetnosy: leif, tan2
messages: + msg342
2007-04-19 22:36:17tan2setstatus: unread -> chatting
nosy: + tan2
messages: + msg341
2007-04-19 21:15:47leifcreate