Package roswtf :: Module py_pip_deb_checks
[frames] | no frames]

Module py_pip_deb_checks

source code

Checks to see if core Python scripts have: 1) Been installed 2) Have been installed via Debians on Ubuntu 3) Have not been installed via pip on Ubuntu

Functions
 
get_host_os()
Determines the name of the host operating system
source code
 
is_host_os_ubuntu()
Indicates if the host operating system is Ubuntu
source code
 
is_debian_package_installed(deb_pkg)
Uses dpkg to determine if a package has been installed
source code
 
is_a_pip_path_on_ubuntu(path)
Indicates if a path (either directory or file) is in the same place pip installs Python code
source code
 
is_python_package_installed(python_pkg)
Indicates if a Python package is importable in the current environment.
source code
 
is_python_package_installed_via_pip_on_ubuntu(python_pkg)
Indicates if am importable package has been installed through pip on Ubuntu
source code
 
python_module_install_check(ctx)
Make sure core Python modules are installed
source code
 
deb_install_check_on_ubuntu(ctx)
Make sure on Debian python packages are installed
source code
 
pip_install_check_on_ubuntu(ctx)
Make sure on Ubuntu, Python packages are install with apt and not pip
source code
 
wtf_check(ctx)
Check implementation function for roswtf
source code
Variables
  python_prefix = 'python'
  py_to_deb_core_packages = {'catkin_pkg': 'python-catkin-pkg', ...
  py_to_deb_optional_packages = {'rosinstall': 'python-rosinstall'}
  py_to_deb_release_packages = {'bloom': 'python-bloom', 'rosrel...
  warnings = [(<__builtin__.function object>, 'You are missing c...
  errors = []
  __package__ = 'roswtf'
Variables Details

py_to_deb_core_packages

Value:
{'catkin_pkg': 'python-catkin-pkg',
 'rosdep2': 'python-rosdep',
 'rospkg': 'python-rospkg'}

py_to_deb_release_packages

Value:
{'bloom': 'python-bloom', 'rosrelease': 'python-rosrelease'}

warnings

Value:
[(<__builtin__.function object>,
  'You are missing core ROS Python modules: '),
 (<__builtin__.function object>,
  'You have pip installed packages on Ubuntu, remove and install using\
 Debian packages: '),
 (<__builtin__.function object>,
  'You are missing Debian packages for core ROS Python modules: ')]