Lines Matching full:packages

82 MOBLAB_SITE_PACKAGES = '/usr/lib64/python2.7/site-packages'
83 MOBLAB_SITE_PACKAGES_CONTAINER = '/usr/local/lib/python2.7/dist-packages/'
269 def install_package_precheck(packages): argument
271 packages installation should be skipped.
275 environment, chroot or a machine, has the desired packages installed
278 @param packages: A list of names of the packages to install.
286 'is skipped.', packages)
291 'skipped.', packages)
299 def install_packages(packages=[], python_packages=[]): argument
302 @param packages: A list of names of the packages to install.
303 @param python_packages: A list of names of the python packages to install
311 if not install_package_precheck(packages or python_packages):
321 packages = [] if not packages else packages
323 packages.extend(['python-pip', 'python-dev'])
324 if packages:
325 utils.run('sudo apt-get install %s -y --force-yes' % ' '.join(packages))
326 logging.debug('Packages are installed: %s.', packages)
329 # For containers running in Moblab, /usr/local/lib/python2.7/dist-packages/
331 # be installed in /usr/lib/python2.7/dist-packages/
332 # Containers created in Moblab does not have autotest/site-packages folder.
333 if not os.path.exists('/usr/local/autotest/site-packages'):
334 target_setting = '--target="/usr/lib/python2.7/dist-packages/"'
338 logging.debug('Python packages are installed: %s.', python_packages)
358 install_packages(packages=[package])
599 'site-packages')
617 /usr/lib64/python2.7/site-packages is mounted to following folder inside
618 container: /usr/local/lib/python2.7/dist-packages/. The modules include
620 site-packages. For test, the module is only used in
623 with version of 2.2.1 in /usr/lib/python2.7/dist-packages/. The version
624 is newer than the one used in autotest site-packages, but not the latest
831 3. Mount local site-packages.
886 'site-packages')
888 lxc_config.CONTAINER_AUTOTEST_DIR, 'site-packages')