We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
conan profile show default
conan profile show <profile>
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=16 build_type=Release [options] [conf] [build_requires] [env]
Attempt to generate for pkg-config with this library as a requirement. Example repro conanfile:
from conans import ConanFile class test_py(ConanFile): name = "test" version = "0.0.1" generators = "pkg_config" requires = ["cpython/3.9.7"]
My output is:
conanfile.py (test/0.0.1): Installing package Requirements cpython/3.9.7 from 'conancenter' - Cache zlib/1.2.11 from 'conancenter' - Cache Packages cpython/3.9.7:d140711d95cc16a85766a8fc3a551dfafe84cf63 - Cache zlib/1.2.11:3fb49604f9c2f729b85ba3115852006824e72cab - Cache Installing (downloading, building) binaries... zlib/1.2.11: Already installed! cpython/3.9.7: Already installed! cpython/3.9.7: Appending PATH environment variable: C:\Users\<>\.conan\data\cpython\3.9.7\_\_\package\d140711d95cc16a85766a8fc3a551dfafe84cf63\bin cpython/3.9.7: Setting PYTHON environment variable: C:\Users\<>\.conan\data\cpython\3.9.7\_\_\package\d140711d95cc16a85766a8fc3a551dfafe84cf63\bin\python.exe cpython/3.9.7: Setting PYTHON environment variable: C:\Users\<>\.conan\data\cpython\3.9.7\_\_\package\d140711d95cc16a85766a8fc3a551dfafe84cf63\bin cpython/3.9.7: Setting PYTHON_ROOT environment variable: C:\Users\<>\.conan\data\cpython\3.9.7\_\_\package\d140711d95cc16a85766a8fc3a551dfafe84cf63 conanfile.py (test/0.0.1): ERROR: Generator pkg_config(file:None) failed sequence item 2: expected str instance, list found ERROR: sequence item 2: expected str instance, list found
I've tracked the bug to this line of code in the recipe:
self.cpp_info.components["_embed_copy"].names["pkg_config"] = ["python{}-embed".format(py_version.major)]
That property should be a string. Deleting the square brackets fixes this, at least on my end. May I open up a PR to patch this?
The text was updated successfully, but these errors were encountered:
Sure
Sorry, something went wrong.
fix conan-io#8198
36ad1f4
Successfully merging a pull request may close this issue.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
Attempt to generate for pkg-config with this library as a requirement. Example repro conanfile:
My output is:
I've tracked the bug to this line of code in the recipe:
That property should be a string. Deleting the square brackets fixes this, at least on my end. May I open up a PR to patch this?
The text was updated successfully, but these errors were encountered: