Commit 8a87c611 authored by Denis Bilenko's avatar Denis Bilenko

winvbox.py: use make_dist() function

parent ffc58ac7
...@@ -184,25 +184,21 @@ def get_make_dist_option(options, command): ...@@ -184,25 +184,21 @@ def get_make_dist_option(options, command):
sys.exit('Only one expected of --fast|--revert|--clean') sys.exit('Only one expected of --fast|--revert|--clean')
if options.fast: if options.fast:
return '--fast' return {'fast': True}
elif options.revert: elif options.revert:
return '--revert' return {'revert': True}
elif options.clean: elif options.clean:
return '' return {}
else: else:
if command == 'dist': if command == 'dist':
return '' return {}
else: else:
return '--fast' return {'fast': True}
def make_dist(options, command): def make_dist(options, command):
make_dist_opt = get_make_dist_option(options, command) import make_dist
make_dist_command = '%s util/make_dist.py %s %s' % (sys.executable, make_dist_opt, options.version) return make_dist.make_dist(options.version, **get_make_dist_option(options, command))
system(make_dist_command)
filename = glob.glob('/tmp/gevent-make-dist/*.tar.gz')
assert len(filename) == 1, filename
return filename[0]
def get_output(command): def get_output(command):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment