[Python-checkins] python/dist/src/Doc/tools mkpkglist,1.4,1.5

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue May 11 10:37:58 EDT 2004


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11055

Modified Files:
	mkpkglist 
Log Message:
use tools/getversioninfo to extract the version number from the Python
sources


Index: mkpkglist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkpkglist,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mkpkglist	29 May 2003 19:46:29 -0000	1.4
--- mkpkglist	11 May 2004 14:37:55 -0000	1.5
***************
*** 26,40 ****
      ]
  
! 
! fp = open("Makefile")
! for line in fp:
!     line = line.replace('=', ' ', 1)
!     parts = line.split()
!     if parts[:1] == ["RELEASE"]:
!         release = parts[1]
!         break
! else:
!     print >>sys.stderr, "Could not locate RELEASE in Makefile."
!     sys.exit(1)
  
  print '''\
--- 26,33 ----
      ]
  
! getversioninfo = os.path.join(os.path.dirname(__file__), "getversioninfo")
! fp = os.popen('"%s" "%s"' % (sys.executable, getversioninfo), "r")
! release = fp.readline().strip()
! fp.close()
  
  print '''\




More information about the Python-checkins mailing list