File tree 1 file changed +5
-2
lines changed
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.
7
7
import sys
8
8
import os
9
9
import subprocess
10
- import time
11
10
import glob
12
11
import tarfile
13
12
14
13
BASEDIR = os .path .dirname (os .path .dirname (os .path .realpath (__file__ )))
15
14
sys .path .insert (0 , BASEDIR )
16
15
17
- from setup import versiondata
16
+ from setup import versiondata , FALLBACK_VERSION
18
17
timestamp = versiondata .getint ('DEFAULT' , 'timestamp' )
19
18
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
+
20
23
print 'Run "setup.py sdist --formats=tar"' ,
21
24
cmd_sdist = [sys .executable ] + 'setup.py sdist --formats=tar' .split ()
22
25
ec = subprocess .call (cmd_sdist , cwd = BASEDIR , stdout = open (os .devnull , 'w' ))
You can’t perform that action at this time.
0 commit comments