mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
Make --no-install-gtk ignore the gui and guiutil python modules
This is not how Adam recommended doing it, but I couldn't get that way to work. :-)
This commit is contained in:
11
setup.py
11
setup.py
@@ -460,6 +460,10 @@ message. It is probably because you haven't run python setup.py
|
|||||||
configure yet or you are running it for the first time.'''
|
configure yet or you are running it for the first time.'''
|
||||||
|
|
||||||
data = []
|
data = []
|
||||||
|
py_modules=['wicd.networking','wicd.misc','wicd.wnettools',
|
||||||
|
'wicd.wpath','wicd.prefs','wicd.netentry','wicd.dbusmanager',
|
||||||
|
'wicd.logfile','wicd.backend','wicd.configmanager',
|
||||||
|
'wicd.translations']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print "Using init file",(wpath.init, wpath.initfile)
|
print "Using init file",(wpath.init, wpath.initfile)
|
||||||
@@ -481,6 +485,7 @@ try:
|
|||||||
(wpath.postconnectscripts, []),
|
(wpath.postconnectscripts, []),
|
||||||
]
|
]
|
||||||
if not wpath.no_install_gtk:
|
if not wpath.no_install_gtk:
|
||||||
|
py_modules.extend(['wicd.gui', 'wicd.guiutil'])
|
||||||
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.share, ['data/wicd.glade']))
|
data.append((wpath.share, ['data/wicd.glade']))
|
||||||
@@ -544,7 +549,6 @@ except Exception, e:
|
|||||||
print '''Error setting up data array. This is normal if
|
print '''Error setting up data array. This is normal if
|
||||||
python setup.py configure has not yet been run.'''
|
python setup.py configure has not yet been run.'''
|
||||||
|
|
||||||
|
|
||||||
wpactrl_ext = Extension(name='wpactrl',
|
wpactrl_ext = Extension(name='wpactrl',
|
||||||
sources=['depends/python-wpactrl/wpa_ctrl.c',
|
sources=['depends/python-wpactrl/wpa_ctrl.c',
|
||||||
'depends/python-wpactrl/wpactrl.c'],
|
'depends/python-wpactrl/wpactrl.c'],
|
||||||
@@ -572,9 +576,6 @@ connect at startup to any preferred network within range.
|
|||||||
author_email="compwiz18@gmail.com, oreilldf@gmail.com, ampsaltis@gmail.com",
|
author_email="compwiz18@gmail.com, oreilldf@gmail.com, ampsaltis@gmail.com",
|
||||||
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=['wicd.networking','wicd.misc','wicd.gui','wicd.wnettools',
|
py_modules=py_modules,
|
||||||
'wicd.wpath','wicd.prefs','wicd.netentry','wicd.dbusmanager',
|
|
||||||
'wicd.logfile','wicd.backend','wicd.configmanager',
|
|
||||||
'wicd.guiutil','wicd.translations'],
|
|
||||||
data_files=data
|
data_files=data
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user