home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Dos / BUILD next >
Encoding:
Text File  |  1995-12-17  |  1.7 KB  |  42 lines  |  [TEXT/R*ch]

  1. This is a (slightly edited) mail from Amrit, explaining how to build
  2. Python on DOS.  See also the files "make.bat" and "python.mak".
  3.  
  4. From: amrit@xvt.com (Consultant)
  5. Subject: Re: Python 1.0.2 on DOS
  6. To: Guido.van.Rossum@cwi.nl
  7. Date: Mon, 16 May 1994 11:50:22 -0600 (MDT)
  8.  
  9. I have a Makefile, but I didn't submit it because I'm still hanging on
  10. to the pre-1.0 build procedures.  Having everything in one directory
  11. makes things easier to build and work with in Microsoft's PWB.  Also,
  12. there is no reason to split things up when 90% of the optional modules
  13. have no meaning in DOS, so the build area is much smaller than on your
  14. typical UNIX box.
  15.  
  16. I also rename all of the source files that are longer than 8
  17. characters with a script before I build.  This is because Microsoft
  18. NMAKE considers the file dependency "intobject.c" and the real file,
  19. "intobje.c" different as far a dependency checking goes.  (Another
  20. alternative would be to list "intobje.o" as the target rather than
  21. intobject.o; what I did was just rename intobject.c to intobj.c)
  22.  
  23. The makefile can build a debug QuickWin executable, an optimized
  24. QuickWin executable, or a DOS extended python executable.
  25.  
  26. However, this Makefile is a start.  It already takes care of a lot of
  27. stuff that you would have to re-invent.  (such as dealing with the
  28. fact that gcc objects end with ".o" and the standard DOS suffix is
  29. ".obj")
  30.  
  31. The makefile assumes the following directory structure:
  32.  
  33.     python
  34.     - bin
  35.     - obj
  36.     - src
  37.  
  38. The bin and obj directory should exist before make is invoked.  A
  39. script, make.bat, runs nmake with the appropriate flags to build the
  40. DOS or QuickWin version.  The microsoft version generates browser
  41. information automatically.
  42.