本文整理汇总了Python中support.steps.make函数的典型用法代码示例。如果您正苦于以下问题:Python make函数的具体用法?Python make怎么用?Python make使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了make函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: deploy
def deploy(self, env, srcdir, deploydir):
steps.make(srcdir, env, target='install', extra_opts=(
'INSTALL_TOP=%s' % deploydir,
'INSTALL_BIN=%s/applications' % deploydir,
'INSTALL_LIB=%s/libraries' % deploydir,
'INSTALL_LMOD=%s/support/lua/share/5.1' % deploydir,
'INSTALL_CMOD=%s/libraries/lua/5.1' % deploydir,))
示例2: build
def build(self, env, srcdir):
hostpython = os.path.join(srcdir, 'hostpython')
hostpgen = os.path.join(srcdir, 'hostpgen')
steps.make(srcdir, env, extra_opts=(
'HOSTPYTHON=' + hostpython, 'HOSTPGEN=' + hostpgen,
'CROSS_COMPILING=yes', 'MACHDEP=pedigree',
'BLDSHARED=%s -shared' % env['CROSS_CC']))
示例3: prebuild
def prebuild(self, env, srcdir):
steps.autoreconf(srcdir, env)
# Platform-specific modules directory, empty for us.
os.makedirs(os.path.join(srcdir, 'Lib', 'plat-pedigree'))
# Build host pgen and python.
steps.run_configure(self, srcdir, env, inplace=False, host=False)
steps.make(srcdir, env, target='Parser/pgen', inplace=False)
steps.make(srcdir, env, target='python', inplace=False)
pgen_source = os.path.join(steps.get_builddir(srcdir, env, False), 'Parser', 'pgen')
python_source = os.path.join(steps.get_builddir(srcdir, env, False), 'python')
steps.cmd(['mv', pgen_source, os.path.join(srcdir, 'hostpgen')])
steps.cmd(['mv', python_source, os.path.join(srcdir, 'hostpython')])
# No need for this build directory anymore.
shutil.rmtree(steps.get_builddir(srcdir, env, False))