2 from os
.path
import join
5 from Params
import fatal
6 from wafutils
import pymod
7 from wafutils
import configure_python
8 from wafutils
import configure_pyqt
9 from wafutils
import wafutils_dir
11 # ===========================================================================
13 # ===========================================================================
21 # ===========================================================================
23 # ===========================================================================
26 opt
.tool_options('python')
27 opt
.tool_options('pyuic4', wafutils_dir())
29 opt
.parser
.remove_option('--prefix')
30 opt
.add_option('--prefix', type='string', default
=None,
31 help='Set installation prefix', dest
='prefix')
36 if Params
.g_options
.prefix
is None:
37 env
['PREFIX'] = '/shared/packages/%s-%s' % ( APPNAME
, VERSION
)
39 env
['BIN'] = join(env
['PREFIX'],'bin')
40 env
['PYMODS_LIB'] = pymod(env
['PREFIX'])
42 configure_python(conf
)
47 pyqt
= bld
.create_obj('py')
48 pyqt
.inst_var
= 'PYMODS_LIB'
49 pyqt
.find_sources_in_dirs('py ui')
51 bin
= bld
.create_obj('py')
53 bin
.find_sources_in_dirs('bin')