Conan 1.56 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() tools.scm import Git from conan.tools.files import load, update_conandata class Pkg(Conanfile): def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 963 页 | 7.67 MB | 1 年前3Conan 1.54 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() tools.scm import Git from conan.tools.files import load, update_conandata class Pkg(Conanfile): def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 953 页 | 7.65 MB | 1 年前3Conan 1.55 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() tools.scm import Git from conan.tools.files import load, update_conandata class Pkg(Conanfile): def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 963 页 | 7.67 MB | 1 年前3Conan 1.53 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() tools.scm import Git from conan.tools.files import load, update_conandata class Pkg(Conanfile): def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 953 页 | 7.64 MB | 1 年前3Conan 1.26 Documentation
world Release!” is displayed, it worked. The conan create command does the following: • Copies (“export” in Conan terms) the conanfile.py from the user folder into the local cache. • Installs the package Release 1.26.1 Using Conan commands, the conan create command would be equivalent to: $ conan export . demo/testing $ conan install hello/0.1@demo/testing --build=hello # package is created now, use There are two different approaches: • Using the exports sources attribute of the conanfile to export the source code together with the recipe. This way the recipe is self-contained and will not need0 码力 | 669 页 | 5.51 MB | 1 年前3Conan 1.52 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() migration guide to 2.0 Conan Documentation, Release 1.52.0 (continued from previous page) def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 943 页 | 7.62 MB | 1 年前3Conan 1.31 Documentation
world Release!” is displayed, it worked. The conan create command does the following: • Copies (“export” in Conan terms) the conanfile.py from the user folder into the local cache. • Installs the package Release 1.31.4 Using Conan commands, the conan create command would be equivalent to: $ conan export . demo/testing $ conan install hello/0.1@demo/testing --build=hello # package is created now, use There are two different approaches: • Using the exports sources attribute of the conanfile to export the source code together with the recipe. This way the recipe is self-contained and will not need0 码力 | 721 页 | 5.41 MB | 1 年前3Conan 1.30 Documentation
world Release!” is displayed, it worked. The conan create command does the following: • Copies (“export” in Conan terms) the conanfile.py from the user folder into the local cache. • Installs the package Release 1.30.2 Using Conan commands, the conan create command would be equivalent to: $ conan export . demo/testing $ conan install hello/0.1@demo/testing --build=hello # package is created now, use There are two different approaches: • Using the exports sources attribute of the conanfile to export the source code together with the recipe. This way the recipe is self-contained and will not need0 码力 | 715 页 | 5.39 MB | 1 年前3Conan 1.64 Documentation
attribute won’t exist in Conan 2.0. You have to start using the export() and source() methods to mimic the same behavior: • The export() method is responsible for capturing the “coordinates” of the current new conan.tools.scm.Git can be used for this (do not use the legacy Git helper but this one) • The export() method, after capturing the coordinates, can store them in the conandata.yml using the update_conandata() tools.scm import Git from conan.tools.files import load, update_conandata class Pkg(Conanfile): def export(self): git = Git(self, self.recipe_folder) scm_url, scm_commit = git.get_url_and_commit() update_conandata(self0 码力 | 999 页 | 7.54 MB | 1 年前3Conan 1.28 Documentation
world Release!” is displayed, it worked. The conan create command does the following: • Copies (“export” in Conan terms) the conanfile.py from the user folder into the local cache. • Installs the package Release 1.28.2 Using Conan commands, the conan create command would be equivalent to: $ conan export . demo/testing $ conan install hello/0.1@demo/testing --build=hello # package is created now, use There are two different approaches: • Using the exports sources attribute of the conanfile to export the source code together with the recipe. This way the recipe is self-contained and will not need0 码力 | 699 页 | 5.39 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8