diff --git a/persepolis/Persepolis Download Manager.py b/persepolis/Persepolis Download Manager.py index 70aad176..5295b864 100755 --- a/persepolis/Persepolis Download Manager.py +++ b/persepolis/Persepolis Download Manager.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- diff --git a/persepolis/__main__.py b/persepolis/__main__.py index 3ab89a77..7706e257 100644 --- a/persepolis/__main__.py +++ b/persepolis/__main__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- diff --git a/setup.py b/setup.py index 71b3ddf4..c895c3c8 100755 --- a/setup.py +++ b/setup.py @@ -42,7 +42,6 @@ print('python3-pyqt5 is found') except: print('Error : python3-pyqt5 is not installed!') - sys.exit(1) # python3-requests try: @@ -50,7 +49,6 @@ print('python3-requests is found!') except: print('Error : requests is not installed!') - sys.exit(1) # python3-setproctitle try: @@ -66,11 +64,17 @@ except: print("Warning: python3-psutil is not installed!") +# youtube_dl +try: + import youtube_dl + print('youtube_dl is found') +except: + print('Warning: youtube_dl is not installed!') + # aria2 answer = os.system('aria2c --version 1>/dev/null') if answer != 0: print("Error aria2 not installed!") - sys.exit(1) else: print('aria2 is found!') @@ -78,7 +82,6 @@ answer = os.system('notify-send --version 1>/dev/null') if answer != 0: print("Error libnotify-bin is not installed!") - sys.exit(1) else: print('libnotify-bin is found!') @@ -101,7 +104,9 @@ print('Warning: sound-theme-freedesktop is not installed! you need this package for sound notifications!') - +if sys.argv[1] == "test": + print('We have not unit test :)') + sys.exit('0') DESCRIPTION = 'Persepolis Download Manager' @@ -151,7 +156,7 @@ license = 'GPL3', description = DESCRIPTION, long_description = DESCRIPTION, - include_package_data=True, + include_package_data = True, url = 'https://github.com/persepolisdm/persepolis', author = 'AliReza AmirSamimi', author_email = 'alireza.amirsamimi@gmail.com',