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'
21
21
emsg = "Invalid FALLBACK_VERSION. Expected %r got %r."
22
22
assert vfb == FALLBACK_VERSION , emsg % (vfb , FALLBACK_VERSION )
23
23
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" ' )
25
30
cmd_sdist = [sys .executable ] + 'setup.py sdist --formats=tar' .split ()
26
31
ec = subprocess .call (cmd_sdist , cwd = BASEDIR , stdout = open (os .devnull , 'w' ))
27
32
if ec : sys .exit (ec )
28
- print "[done]"
33
+ inform ( "[done]\n " )
29
34
30
35
tarname = max (glob .glob (BASEDIR + '/dist/*.tar' ), key = os .path .getmtime )
31
36
@@ -40,11 +45,10 @@ def fixtarinfo(tinfo):
40
45
tinfo .mode &= ~ 0o022
41
46
return tinfo
42
47
43
-
44
- print 'Filter %s --> %s.gz' % (2 * (os .path .basename (tarname ),)),
48
+ inform ('Filter %s --> %s.gz ' % (2 * (os .path .basename (tarname ),)))
45
49
for ti in tfin :
46
50
tfout .addfile (fixtarinfo (ti ), tfin .extractfile (ti ))
47
51
48
52
tfin .close ()
49
53
os .remove (tarname )
50
- print "[done]"
54
+ inform ( "[done]\n " )
You can’t perform that action at this time.
0 commit comments