Lines Matching +full:python3 +full:- +full:pip
1 #!/usr/bin/env python3
6 # SPDX-License-Identifier: Apache-2.0
12 # http://www.apache.org/licenses/LICENSE-2.0
33 ) -> None:
40 def __init__(self) -> None:
43 def adjust_requirement(self, req: str) -> str:
45 # allow inheritance #pylint: disable=no-self-use
51 def add_file(self, filename: str) -> None:
54 This method supports a subset of pip's requirement file syntax:
58 * ``-r FILENAME`` to include another file.
65 m = re.match(r'-r\s+', line)
73 def write(self, out: typing_util.Writable) -> None:
82 ) -> None:
83 """Call pip to install the requirements."""
98 subprocess.check_call([sys.executable, '-m', 'pip'] +
101 ['-r', req_file_name])
105 def main() -> None:
108 parser.add_argument('--no-act', '-n',
111 parser.add_argument('--pip-install-option',
113 help="Pass this option to pip install")
114 parser.add_argument('--pip-option',
116 help="Pass this general option to pip")
117 parser.add_argument('--user',
119 const='--user',
121 " (short for --pip-install-option --user)")