Skip to content

Commit

Permalink
Add check for python version to build.py, close #589
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenetar committed Aug 21, 2021
1 parent 16df882 commit b4fa1d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import os
import os.path as op
import sys
from optparse import OptionParser
import shutil

Expand Down Expand Up @@ -165,10 +166,11 @@ def build_normal():


def main():
if sys.version_info < (3, 6):
sys.exit("Python < 3.6 is unsupported.")
options = parse_args()
if options.clean:
if op.exists("build"):
shutil.rmtree("build")
if options.clean and op.exists("build"):
shutil.rmtree("build")
if not op.exists("build"):
os.mkdir("build")
if options.doc:
Expand Down

0 comments on commit b4fa1d6

Please sign in to comment.