def _spawn_wheel_build(self, built_wheels_dir, build_request): build_result = build_request.result(built_wheels_dir) build_job = get_pip().spawn_build_wheels( distributions=[build_request.source_path], wheel_dir=build_result.build_dir, cache=self._cache, interpreter=build_request.target.get_interpreter()) return SpawnedJob.wait(job=build_job, result=build_result)
def _spawn_install(self, installed_wheels_dir, install_request): install_result = install_request.result(installed_wheels_dir) install_job = get_pip().spawn_install_wheel( wheel=install_request.wheel_path, install_dir=install_result.build_chroot, compile=self._compile, cache=self._cache, target=install_request.target) return SpawnedJob.wait(job=install_job, result=install_result)
def _spawn_wheel_build(self, built_wheels_dir, build_request): build_result = build_request.result(built_wheels_dir) build_job = get_pip().spawn_build_wheels( distributions=[build_request.source_path], wheel_dir=build_result.build_dir, cache=self._cache, indexes=self._indexes, find_links=self._find_links, network_configuration=self._network_configuration, interpreter=build_request.target.get_interpreter()) return SpawnedJob.wait(job=build_job, result=build_result)
def _spawn_resolve(self, resolved_dists_dir, target): download_dir = os.path.join(resolved_dists_dir, target.id) download_job = get_pip().spawn_download_distributions( download_dir=download_dir, requirements=self._requirements, requirement_files=self._requirement_files, constraint_files=self._constraint_files, allow_prereleases=self._allow_prereleases, transitive=self._transitive, target=target, indexes=self._indexes, find_links=self._find_links, cache=self._cache, build=self._build, manylinux=self._manylinux, use_wheel=self._use_wheel) return SpawnedJob.wait(job=download_job, result=ResolveResult(target, download_dir))
def _spawn_download(self, resolved_dists_dir, target): download_dir = os.path.join(resolved_dists_dir, target.id) download_job = get_pip().spawn_download_distributions( download_dir=download_dir, requirements=self.requirements, requirement_files=self.requirement_files, constraint_files=self.constraint_files, allow_prereleases=self.allow_prereleases, transitive=self.transitive, target=target, indexes=self.indexes, find_links=self.find_links, network_configuration=self.network_configuration, cache=self.cache, build=self.build, manylinux=self.manylinux, use_wheel=self.use_wheel) return SpawnedJob.wait(job=download_job, result=DownloadResult(target, download_dir))