mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Add check for python version to build.py, close #589
This commit is contained in:
parent
16df882481
commit
b4fa1d68f0
8
build.py
8
build.py
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path as op
|
import os.path as op
|
||||||
|
import sys
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
@ -165,10 +166,11 @@ def build_normal():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if sys.version_info < (3, 6):
|
||||||
|
sys.exit("Python < 3.6 is unsupported.")
|
||||||
options = parse_args()
|
options = parse_args()
|
||||||
if options.clean:
|
if options.clean and op.exists("build"):
|
||||||
if op.exists("build"):
|
shutil.rmtree("build")
|
||||||
shutil.rmtree("build")
|
|
||||||
if not op.exists("build"):
|
if not op.exists("build"):
|
||||||
os.mkdir("build")
|
os.mkdir("build")
|
||||||
if options.doc:
|
if options.doc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user