conan
conan copied to clipboard
Improve the error message when trying to use a `build-scripts` package as a regular requirement
It currently fails on an assert with no further context provided in the stack trace. There might be a better place to do this check, though.
Also, might want to add a check for PackageType.PYTHON as well.
Changelog: Fix: Improve the error message when trying to use a build-scripts package as a regular requirement
Docs: Omit
- [ ] Refer to the issue that supports this Pull Request.
- [ ] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
- [ ] I've read the Contributing guide.
- [ ] I've followed the PEP8 style guides for Python code.
- [ ] I've opened another PR in the Conan docs repo to the
developbranch, documenting this one.