forked from conan-io/conan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* download refactor * more refactors * minor changes to manifest test
- Loading branch information
1 parent
2377031
commit 277a19b
Showing
8 changed files
with
91 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from conans.client.loader_parse import load_conanfile_class | ||
from conans.model.ref import PackageReference | ||
import os | ||
|
||
|
||
def download_binaries(reference, package_ids, client_cache, remote_manager, remote, output, recorder): | ||
conanfile_path = client_cache.conanfile(reference) | ||
if not os.path.exists(conanfile_path): | ||
raise Exception("Download recipe first") | ||
conanfile = load_conanfile_class(conanfile_path) | ||
short_paths = conanfile.short_paths | ||
|
||
for package_id in package_ids: | ||
package_ref = PackageReference(reference, package_id) | ||
package_folder = client_cache.package(package_ref, short_paths=short_paths) | ||
output.info("Downloading %s" % str(package_ref)) | ||
remote_manager.get_package(package_ref, package_folder, remote, output, recorder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters