Exemple #1
0
def install():
    cliqz.log_action('Installing hunmisc')
    path = '/opt/hunmisc'
    cliqz.cli.system_package('build-essential', 'python-dev')
    cliqz.cli.python_package('dawg')
    pkg = cliqz.package.gen_definition()
    pkg['strip'] = 0
    with lcd(resource_file('../../')):
        local("tar cjf {} hunmisc setup.py".format(pkg['local']))
    cliqz.package.install(pkg, path)
    run('pip install --editable {}'.format(path))
Exemple #2
0
def install_db():
    path = '/opt/hunmisc'
    cliqz.log_action('Installing Entity DB')
    cliqz.cli.system_package('build-essential', 'python-dev')
    cliqz.cli.python_package('dawg')
    pkg = cliqz.package.gen_definition()
    pkg['strip'] = 0
    with lcd(resource_file('../../')):
        local("tar cjf {} hunmisc setup.py".format(pkg['local']))
    cliqz.package.install(pkg, path)
    run('pip install --editable {}'.format(path))
Exemple #3
0
def install_db():
	path = '/opt/hunmisc'
	cliqz.log_action('Installing Entity DB')
	cliqz.cli.system_package('build-essential', 'python-dev')
	cliqz.cli.python_package('dawg')
	pkg = cliqz.package.gen_definition()
	pkg['strip'] = 1
	with lcd( resource_file( '.' ) ):
		local( 'PACKAGE={} make package'.format( pkg['local'] ) )
	cliqz.package.install( pkg, path )
	with cd(path):
		run('python setup.py install')
	return path