IC_
IC_

Reputation: 1789

Python. Conans module for conanfile.py

I often see a lot of conanfile.py and all of them have something like that from conans import ConanFile, CMake, tools but I cannot find conans module in python registry. Where I can find some helper or like that to write my config files in type-safe way with autocompletion?

Upvotes: 1

Views: 1959

Answers (1)

uilianries
uilianries

Reputation: 3887

First, you need to have Conan installed in your environment, to have all python files available for reading.

So you need to configure your IDE or code editor to find your python files based in your Python interpreter. Most of IDEs are able to deduce it automatically (PyCharm, vscode, vim...), so it's not a Conan feature.

Here is an example for Atom: Adding modules in atom in python

Upvotes: 1

Related Questions