Conan 1.8 Documentation
behavior at determined points. 11.2.1 Plugin structure Plugins are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a plugin may come handy are the upload and download actions. There are pre and post func- tions for every download/upload as a whole and for fine download tasks such as recipe and package 5: signing_plugin.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 458 页 | 3.03 MB | 1 年前3Conan 1.9 Documentation
client behavior at determined points. 11.2.1 Hook structure Hooks are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 5: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 470 页 | 3.05 MB | 1 年前3Conan 1.18 Documentation
client behavior at determined points. 12.3.1 Hook structure Hooks are Python files containing pre and post functions that will be executed before and after a particular task per- formed by the Conan client Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 2: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 584 页 | 4.80 MB | 1 年前3Conan 1.19 Documentation
Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 2: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder package_folder, ".sign") tools.save(sign_path, SIGNATURE) output.success("Package signed successfully") def post_download_package(output, conanfile_path, reference, package_id, remote_name,␣ ˓→**kwargs): package_path0 码力 | 609 页 | 4.88 MB | 1 年前3Conan 1.20 Documentation
Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 2: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder package_folder, ".sign") tools.save(sign_path, SIGNATURE) output.success("Package signed successfully") def post_download_package(output, conanfile_path, reference, package_id, remote_name,␣ ˓→**kwargs): package_path0 码力 | 611 页 | 4.89 MB | 1 年前3Conan 1.16 Documentation
client behavior at determined points. 11.3.1 Hook structure Hooks are Python files containing pre and post functions that will be executed before and after a particular task per- formed by the Conan client Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 2: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 545 页 | 4.34 MB | 1 年前3Conan 1.10 Documentation
client behavior at determined points. 11.2.1 Hook structure Hooks are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 5: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 479 页 | 3.09 MB | 1 年前3Conan 1.11 Documentation
client behavior at determined points. 11.2.1 Hook structure Hooks are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 5: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 490 页 | 4.05 MB | 1 年前3Conan 1.12 Documentation
client behavior at determined points. 11.2.1 Hook structure Hooks are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 5: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 505 页 | 4.10 MB | 1 年前3Conan 1.13 Documentation
client behavior at determined points. 11.2.1 Hook structure Hooks are Python files containing pre and post functions that will be executed prior and after a determined task performed by the Conan client. Those Other useful task where a hook may come handy are the upload and download actions. There are pre and post functions for every download/upload as a whole and for fine download tasks such as recipe and package Listing 5: signing_hook.py import os from conans import tools SIGNATURE = "this is my signature" def post_package(output, conanfile, conanfile_path, **kwargs): sign_path = os.path.join(conanfile.package_folder0 码力 | 518 页 | 4.14 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8