From 13df397b078ba856cf0f257583ddafa1666bfdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Date: Tue, 10 Apr 2018 06:34:07 +0200 Subject: [PATCH] remove osc_hotshot.py osc_hotshot.py is long time untouched and broken thus I assume it is safe to be removed fixes issue #400 --- osc_hotshot.py | 32 -------------------------------- setup.py | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100755 osc_hotshot.py diff --git a/osc_hotshot.py b/osc_hotshot.py deleted file mode 100755 index 54ac40f5..00000000 --- a/osc_hotshot.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import hotshot, hotshot.stats -import tempfile -import os, sys - -from osc import commandline - - -if __name__ == '__main__': - - (fd, filename) = tempfile.mkstemp(prefix = 'osc_profiledata_', dir = '/dev/shm') - f = os.fdopen(fd) - - try: - - prof = hotshot.Profile(filename) - - prof.runcall(commandline.main) - print 'run complete. analyzing.' - prof.close() - - stats = hotshot.stats.load(filename) - stats.strip_dirs() - stats.sort_stats('time', 'calls') - stats.print_stats(20) - - del stats - - finally: - f.close() - os.unlink(filename) diff --git a/setup.py b/setup.py index e0128eb3..9292a0b6 100755 --- a/setup.py +++ b/setup.py @@ -111,7 +111,7 @@ setuptools.setup(name='osc', url = 'http://en.opensuse.org/openSUSE:OSC', download_url = 'https://github.com/openSUSE/osc', packages = ['osc', 'osc.util'], - scripts = ['osc-py3-wrapper.py'], + scripts = ['osc-wrapper.py'], data_files = data_files, # Override certain command classes with our own ones