diff -up persepolis-3.1.0/setup.py.nodepscheck persepolis-3.1.0/setup.py
--- persepolis-3.1.0/setup.py.nodepscheck 2018-03-31 17:27:39.323533938 +0430
+++ persepolis-3.1.0/setup.py 2018-03-31 17:28:17.052086072 +0430
@@ -35,98 +35,6 @@ else:
print('This script is only work for GNU/Linux or BSD!')
sys.exit(1)
-# Checking dependencies!
-not_installed = ''
-
-# PyQt5
-try:
- import PyQt5
- print('python3-pyqt5 is found')
-except:
- print('Error : python3-pyqt5 is not installed!')
- not_installed = not_installed + 'PyQt5, '
-
-# python3-requests
-try:
- import requests
- print('python3-requests is found!')
-except:
- print('Error : requests is not installed!')
- not_installed = not_installed + 'python3-requests, '
-
-# python3-setproctitle
-try:
- import setproctitle
- print('python3-setproctitle is found!')
-except:
- print("Warning: setproctitle is not installed!")
- not_installed = not_installed + 'python3-setproctitle, '
-
-# psutil
-try:
- import psutil
- print('python3-psutil is found!')
-except:
- print("Warning: python3-psutil is not installed!")
- not_installed = not_installed + 'psutil, '
-
-# youtube_dl
-try:
- import youtube_dl
- print('youtube-dl is found')
-except:
- print('Warning: youtube-dl is not installed!')
- not_installed = not_installed + 'youtube-dl, '
-
-# aria2
-answer = os.system('aria2c --version 1>/dev/null')
-if answer != 0:
- print("Error aria2 not installed!")
- not_installed = not_installed + 'aria2c, '
-else:
- print('aria2 is found!')
-
-# libnotify-bin
-answer = os.system('notify-send --version 1>/dev/null')
-if answer != 0:
- print("Error libnotify-bin is not installed!")
- not_installed = not_installed + 'libnotify-bin, '
-else:
- print('libnotify-bin is found!')
-
-# paplay
-answer = os.system('paplay --version 1>/dev/null')
-if answer != 0:
- print("Warning: paplay not installed!You need pulseaudio for sound notifications!")
- not_installed = not_installed + 'paplay, '
-else:
- print('paplay is found!')
-
-# sound-theme-freedesktop
-if os_type == 'Linux':
- notifications_path = '/usr/share/sounds/freedesktop/stereo/'
-elif os_type == 'FreeBSD' or os_type == 'OpenBSD':
- notifications_path = '/usr/local/share/sounds/freedesktop/stereo/'
-
-if os.path.isdir(notifications_path):
- print('sound-theme-freedesktop is found!')
-else:
- print('Warning: sound-theme-freedesktop is not installed! you need this package for sound notifications!')
- not_installed = not_installed + 'sound-theme-freedesktop'
-
-# show warning , if dependencies not installed!
-if not_installed != '':
- print('########################')
- print('####### WARNING ########')
- print('########################')
- print('Some dependencies are not installed .It causes some problems for persepolis! : \n')
- print(not_installed + '\n\n')
- print('Read this link for more information: \n')
- print('https://github.com/persepolisdm/persepolis/wiki/git-installation-instruction\n\n')
- answer = input('Do you want to continue?(y/n)')
- if answer not in ['y', 'Y', 'yes']:
- sys.exit(1)
-
if sys.argv[1] == "test":
print('We have not unit test :)')
sys.exit('0')