Remove unneeded getopt dependency

This commit is contained in:
anatoly techtonik 2016-04-07 10:35:31 +03:00
parent 1f3fc0b8ae
commit 6be40f54ba

View File

@ -3,7 +3,6 @@
import subprocess
import shutil
import sys
import getopt
import os
from config import *
@ -139,14 +138,12 @@ def run_one(op):
if __name__ == '__main__':
opts, args = getopt.getopt(sys.argv[1:], '', ['clean', 'dist'])
opts = dict(opts)
if '--clean' in opts:
args = sys.argv[1:]
if '--clean' in args:
clean()
op = 'install'
if '--dist' in opts:
if '--dist' in args:
op = "bdist_wininst --user-access-control=auto"
if 'PYTHON' in os.environ: