won't increase build by default anymore
This commit is contained in:
parent
586fcae541
commit
7f74cbd7bd
2 changed files with 5 additions and 2 deletions
2
.build
2
.build
|
@ -1 +1 @@
|
||||||
9
|
10
|
5
setup.py
5
setup.py
|
@ -5,9 +5,12 @@ from distutils.core import setup
|
||||||
import os
|
import os
|
||||||
def get_build():
|
def get_build():
|
||||||
path = "./.build"
|
path = "./.build"
|
||||||
|
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
fp = open(path, "r")
|
fp = open(path, "r")
|
||||||
build = eval(fp.read())+1
|
build = eval(fp.read())
|
||||||
|
if os.path.exists("./.increase_build"):
|
||||||
|
build += 1
|
||||||
fp.close()
|
fp.close()
|
||||||
else:
|
else:
|
||||||
build = 1
|
build = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue