Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swig/4.0.2: Fix KB-Hxxx hook errors #11705

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

VestniK
Copy link
Contributor

@VestniK VestniK commented Jul 14, 2022

cpp_info.build_modules must be dict with per generator file lists not just
file list. This commit fixes swig package build with conan-center hooks
enabled.

Right now broken build with hooks enabled blocks work on #11441 PR


  • [+] I've read the guidelines for contributing.
  • [+] I've followed the PEP8 style guides for Python code in the recipes.
  • [+] I've used the latest Conan client version.
  • [+] I've tried at least one configuration locally with the conan-center hook activated.

@conan-center-bot

This comment has been minimized.

cpp_info.build_modules must be dict with per generator file lists not just
file list. This commit fixes swig package build with conan-center hooks
enabled.
swig is a program package and here are no includes
@VestniK VestniK changed the title swig/4.0.2: Fix invalid use of cpp_info.build_modules swig/4.0.2: Fix KB-Hxxx hook errors Jul 15, 2022
@conan-center-bot
Copy link
Collaborator

All green in build 2 (ffa673476545f956fdc83697a8ef4a7ecc988b9b):

  • swig/4.0.1@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, tools, AutoToolsBuildEnvironment
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • swig/4.0.2@:
    All packages built successfully! (All logs)

    🔸 Informative: This recipe is not ready for Conan v2

    We have started the migration process to Conan v2 and exporting recipes successfully will be required in the future.
    This is just an informative note to gain awareness about the process, no need to take any action. The plan is to enforce smaller steps that are easier to fix and, eventually, this conan export step will work.
    See the recipe migration guide to know more about the changes required.

    ERROR: Error loading conanfile at '/home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod_cci_PR-11705/recipes/swig/all/conanfile.py", line 1, in <module>
        from conans import ConanFile, tools, AutoToolsBuildEnvironment
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

@conan-center-bot conan-center-bot merged commit 933a853 into conan-io:master Jul 18, 2022
@VestniK VestniK deleted the swig-hooks branch July 19, 2022 10:05
AndreyMlashkin pushed a commit to AndreyMlashkin/conan-center-index that referenced this pull request Jul 29, 2022
* swig/4.0.2: Fix invalid use of cpp_info.build_modules

cpp_info.build_modules must be dict with per generator file lists not just
file list. This commit fixes swig package build with conan-center hooks
enabled.

* swig/4.0.2: Fix KB-H071

swig is a program package and here are no includes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants