File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,16 @@ vfb = versiondata.get('DEFAULT', 'version').split('.post')[0] + '.post0'
2121emsg = "Invalid FALLBACK_VERSION. Expected %r got %r."
2222assert vfb == FALLBACK_VERSION , emsg % (vfb , FALLBACK_VERSION )
2323
24- print 'Run "setup.py sdist --formats=tar"' ,
24+ def inform (s ):
25+ sys .stdout .write (s )
26+ sys .stdout .flush ()
27+ return
28+
29+ inform ('Run "setup.py sdist --formats=tar" ' )
2530cmd_sdist = [sys .executable ] + 'setup.py sdist --formats=tar' .split ()
2631ec = subprocess .call (cmd_sdist , cwd = BASEDIR , stdout = open (os .devnull , 'w' ))
2732if ec : sys .exit (ec )
28- print "[done]"
33+ inform ( "[done]\n " )
2934
3035tarname = max (glob .glob (BASEDIR + '/dist/*.tar' ), key = os .path .getmtime )
3136
@@ -40,11 +45,10 @@ def fixtarinfo(tinfo):
4045 tinfo .mode &= ~ 0o022
4146 return tinfo
4247
43-
44- print 'Filter %s --> %s.gz' % (2 * (os .path .basename (tarname ),)),
48+ inform ('Filter %s --> %s.gz ' % (2 * (os .path .basename (tarname ),)))
4549for ti in tfin :
4650 tfout .addfile (fixtarinfo (ti ), tfin .extractfile (ti ))
4751
4852tfin .close ()
4953os .remove (tarname )
50- print "[done]"
54+ inform ( "[done]\n " )
You can’t perform that action at this time.
0 commit comments