File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,19 @@ to a root user and modification time is set to the git commit time.
77import sys
88import os
99import subprocess
10- import time
1110import glob
1211import tarfile
1312
1413BASEDIR = os .path .dirname (os .path .dirname (os .path .realpath (__file__ )))
1514sys .path .insert (0 , BASEDIR )
1615
17- from setup import versiondata
16+ from setup import versiondata , FALLBACK_VERSION
1817timestamp = versiondata .getint ('DEFAULT' , 'timestamp' )
1918
19+ vfb = versiondata .get ('DEFAULT' , 'version' ).split ('.post' )[0 ] + '.post0'
20+ emsg = "Invalid FALLBACK_VERSION. Expected %r got %r."
21+ assert vfb == FALLBACK_VERSION , emsg % (vfb , FALLBACK_VERSION )
22+
2023print 'Run "setup.py sdist --formats=tar"' ,
2124cmd_sdist = [sys .executable ] + 'setup.py sdist --formats=tar' .split ()
2225ec = subprocess .call (cmd_sdist , cwd = BASEDIR , stdout = open (os .devnull , 'w' ))
You can’t perform that action at this time.
0 commit comments