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))
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))
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