Commit a6d13d07 by Csók Tamás

client: (linuxInstaller) some flake8 correction

parent 6f104177
#!/bin/bash
sudo apt-get install sshpass python-pip remmina-plugin-nx remmina-plugin-rdp xdg-user-dirs
sudo cp cloud2 /usr/local/bin/
sudo chmod +x /usr/local/bin/cloud2
sudo cp cloud.py /usr/local/bin/
sudo chmod +x /usr/local/bin/cloud.py
sudo cp cloud_connect_from_linux.py /usr/local/bin/
sudo chmod +x /usr/local/bin/cloud_connect_from_linux.py
sudo cp cloud.svg /usr/share/icons/
sudo cp cloud.desktop /usr/share/applications
sudo chmod +x /usr/share/applications/cloud.desktop
sudo update-desktop-database
cp cloud.desktop $(xdg-user-dir DESKTOP)
chmod +x $(xdg-user-dir DESKTOP)/cloud.desktop
remmina
\ No newline at end of file
...@@ -13,6 +13,7 @@ if version < '2.2.3': ...@@ -13,6 +13,7 @@ if version < '2.2.3':
compile_args = ['-DHAVE_LIBGCRYPT'] compile_args = ['-DHAVE_LIBGCRYPT']
linker_args = [] linker_args = []
def decide_options(arguments, compile_arguments, linker_arguments): def decide_options(arguments, compile_arguments, linker_arguments):
for argument in arguments: for argument in arguments:
if argument[:2] == '-l': if argument[:2] == '-l':
...@@ -20,6 +21,7 @@ def decide_options(arguments, compile_arguments, linker_arguments): ...@@ -20,6 +21,7 @@ def decide_options(arguments, compile_arguments, linker_arguments):
else: else:
compile_arguments.append(argument) compile_arguments.append(argument)
def list_output(cmd): def list_output(cmd):
p = subprocess.Popen( p = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
...@@ -27,25 +29,27 @@ def list_output(cmd): ...@@ -27,25 +29,27 @@ def list_output(cmd):
return p.communicate()[0].split() return p.communicate()[0].split()
cmd = ['pkg-config', '--libs', '--cflags', 'gtk+-2.0', 'glib-2.0'] cmd = ['pkg-config', '--libs', '--cflags', 'gtk+-2.0', 'glib-2.0']
decide_options(list_output(cmd), compile_args, linker_args) decide_options(list_output(cmd), compile_args, linker_args)
cmd = ['libgcrypt-config', '--libs', '--cflags'] cmd = ['libgcrypt-config', '--libs', '--cflags']
decide_options(list_output(cmd), compile_args, linker_args) decide_options(list_output(cmd), compile_args, linker_args)
remminapasswd = Extension('remminapasswd', remminapasswd = Extension('remminapasswd',
sources = ['remminapasswdmodule.c', sources=['remminapasswdmodule.c',
'remmina_crypt.c', 'remmina_crypt.c',
'remmina_pref.c', 'remmina_pref.c',
'remmina_string_array.c'], 'remmina_string_array.c'],
extra_compile_args = compile_args, extra_compile_args=compile_args,
extra_link_args = linker_args) extra_link_args=linker_args)
setup(name='CIRCLE Client', setup(name='CIRCLE Client',
version='0.1', version='0.1',
description='Connectivity helper for CIRCLE cloud system', description='Connectivity helper for CIRCLE cloud system',
long_description=('Tool to enhance ease of use of the CIRCLE by ' long_description=(
+'the use of third party connetcion handler programs. These programs ' 'Tool to enhance ease of use of the CIRCLE by '
+'are auto launched and configured by the Client.'), 'the use of third party connetcion handler programs. '
'These programs are auto launched and '
'configured by the Client.'),
author='Csok Tamas', author='Csok Tamas',
author_email='csok.tamas@cloud.bme.hu', author_email='csok.tamas@cloud.bme.hu',
maintainer='BME IK', maintainer='BME IK',
...@@ -58,7 +62,5 @@ setup(name='CIRCLE Client', ...@@ -58,7 +62,5 @@ setup(name='CIRCLE Client',
'Intended Audience :: End Users/Desktop', 'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators', 'Intended Audience :: System Administrators',
'Programming Language :: Python/C', 'Programming Language :: Python/C',
'Topic :: Office/Business', 'Topic :: Office/Business'],
], ext_modules=[remminapasswd])
ext_modules=[remminapasswd],
)
\ No newline at end of file
#!/bin/bash
sudo rm -f /usr/local/bin/remminapasswd
sudo rm -f /usr/local/bin/cloud2
sudo rm -f /usr/local/bin/cloud.py
sudo rm -f /usr/local/bin/cloud_connect_from_linux.py
sudo rm -f /usr/share/icons/cloud.svg
rm -f $(xdg-user-dir DESKTOP)/cloud.desktop
\ No newline at end of file
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 sign in to comment