title: Reinstalling Python 2.5.6 On Lion
body: <p>I am having the identical problem as mentioned in this thread when I try to install Python 2.5.6 on Lion: <a href="https://stackoverflow.com/questions/10084379/python-2-5-6-build-error-on-mac-lion">Python 2.5.6 build error on Mac Lion</a></p>
  
  <p>Specifically, the error I receive is when attempting a make is:</p>
  
  <pre><code>/usr/bin/gcc-4.2 -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
  cc1: error: unrecognized command line option "-Wno-long-double"
  make: *** [Modules/python.o] Error 1
  </code></pre>
  
  <p>In my case, it is as a result of me deleting the python 2.5 folder thinking I would never need it while I was troubleshooting another problem. </p>
  
  <p>Now, when I try to launch Google App Engine, I get the error: "Sorry, pieces of GoogleAppEngineLauncher.app appear missing or corrupted, or I can't run python2.5 properly" and then it shuts down, so unfortunately I can't just ignore the problem as is recommended in the previous thread.</p>
  
  <p>EDIT:
  It looks like I messed things up pretty royally by deleting the folder. The solution (though I haven't implemented it yet) is described here: <a href="https://stackoverflow.com/questions/7473762/mac-python-installation-step-failed-run-postflight-script">Mac Python &quot;Installation step failed: run postflight script&quot;</a></p>
  
  <p>EDIT x2:
  Solved it! Though I have no idea what kind of damage I've done. I ran the .DMG installer, and even though it failed it placed the folder for Python 2.5.4. in <code>/Library/Frameworks/Python.framework/Versions</code>. I then copied that along with 2.7 into the <code>/System/Library/Frameworks/Python.framework/Versions</code> folder. After that, launched Google App Engine and everything worked! (For now.)</p>