mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 14:07:59 +01:00
Make style consistent across the file
This commit is contained in:
29
setup.py
29
setup.py
@@ -479,6 +479,7 @@ class uninstall(Command):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
os.system("./uninstall.sh")
|
os.system("./uninstall.sh")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import wpath
|
import wpath
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@@ -518,13 +519,20 @@ try:
|
|||||||
(wpath.preconnectscripts, [empty_file]),
|
(wpath.preconnectscripts, [empty_file]),
|
||||||
(wpath.postconnectscripts, [empty_file]),
|
(wpath.postconnectscripts, [empty_file]),
|
||||||
]
|
]
|
||||||
|
|
||||||
if not wpath.no_install_gtk:
|
if not wpath.no_install_gtk:
|
||||||
data.append((wpath.desktop, ['other/wicd.desktop']))
|
data.append((wpath.desktop, ['other/wicd.desktop']))
|
||||||
data.append((wpath.bin, ['scripts/wicd-client']))
|
data.append((wpath.bin, ['scripts/wicd-client']))
|
||||||
data.append((wpath.bin, ['scripts/wicd-gtk']))
|
data.append((wpath.bin, ['scripts/wicd-gtk']))
|
||||||
data.append((wpath.gtk, ['gtk/wicd-client.py', 'gtk/netentry.py', 'gtk/prefs.py',
|
data.append((wpath.gtk, [
|
||||||
'gtk/gui.py', 'gtk/guiutil.py', 'data/wicd.ui',
|
'gtk/wicd-client.py',
|
||||||
'gtk/configscript.py']))
|
'gtk/netentry.py',
|
||||||
|
'gtk/prefs.py',
|
||||||
|
'gtk/gui.py',
|
||||||
|
'gtk/guiutil.py',
|
||||||
|
'data/wicd.ui',
|
||||||
|
'gtk/configscript.py',
|
||||||
|
]))
|
||||||
data.append((wpath.autostart, ['other/wicd-tray.desktop']))
|
data.append((wpath.autostart, ['other/wicd-tray.desktop']))
|
||||||
if not wpath.no_install_man:
|
if not wpath.no_install_man:
|
||||||
data.append((wpath.mandir + 'man1/', [ 'man/wicd-client.1' ]))
|
data.append((wpath.mandir + 'man1/', [ 'man/wicd-client.1' ]))
|
||||||
@@ -613,10 +621,15 @@ wpactrl_ext = Extension(name='wpactrl',
|
|||||||
iwscan_ext = Extension(name = 'iwscan', libraries = ['iw'],
|
iwscan_ext = Extension(name = 'iwscan', libraries = ['iw'],
|
||||||
sources = ['depends/python-iwscan/pyiwscan.c'])
|
sources = ['depends/python-iwscan/pyiwscan.c'])
|
||||||
|
|
||||||
setup(cmdclass={'configure' : configure, 'get_translations' : get_translations,
|
setup(
|
||||||
'uninstall' : uninstall, 'test' : test, 'clear_generated' :
|
cmdclass = {
|
||||||
clear_generated, 'update_translations_py' :
|
'configure' : configure,
|
||||||
update_translations_py},
|
'get_translations' : get_translations,
|
||||||
|
'uninstall' : uninstall,
|
||||||
|
'test' : test,
|
||||||
|
'clear_generated' : clear_generated,
|
||||||
|
'update_translations_py' : update_translations_py,
|
||||||
|
},
|
||||||
name = "Wicd",
|
name = "Wicd",
|
||||||
version = VERSION_NUM,
|
version = VERSION_NUM,
|
||||||
description = "A wireless and wired network manager",
|
description = "A wireless and wired network manager",
|
||||||
@@ -633,5 +646,5 @@ connect at startup to any preferred network within range.
|
|||||||
url = "http://wicd.net",
|
url = "http://wicd.net",
|
||||||
license = "http://www.gnu.org/licenses/old-licenses/gpl-2.0.html",
|
license = "http://www.gnu.org/licenses/old-licenses/gpl-2.0.html",
|
||||||
py_modules = py_modules,
|
py_modules = py_modules,
|
||||||
data_files=data
|
data_files = data,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user