Esempio n. 1
0
 def _pip(self):
     if not self.__pip:
         self.__pip = _python.Pip(
             python_major_version=self._python_major_version,
             part_dir=self.partdir,
             install_dir=self.installdir,
             stage_dir=self.project.stage_dir)
     return self.__pip
Esempio n. 2
0
    def _pip(self):
        if not self.__pip:
            self.__pip = _python.Pip(
                python_major_version='2',  # ROS1 only supports python2
                part_dir=self.partdir,
                install_dir=self.installdir,
                stage_dir=self.project.stage_dir)

        return self.__pip
Esempio n. 3
0
    def _pip(self):
        if not self.__pip:
            self.__pip = _python.Pip(
                python_major_version="3",  # ROS2 uses python3
                part_dir=self.partdir,
                install_dir=self.installdir,
                stage_dir=self.project.stage_dir,
            )

        return self.__pip