Conditions | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
1 | import os |
||
4 | def configuration(parent_package='', top_path=None): |
||
5 | from numpy.distutils.misc_util import Configuration |
||
|
|||
6 | |||
7 | libraries = [] |
||
8 | if os.name == 'posix': |
||
9 | libraries.append('m') |
||
10 | |||
11 | config = Configuration('classification', parent_package, top_path) |
||
12 | config.add_extension('_simple_tree', |
||
13 | sources=['_simple_tree.c'], |
||
14 | include_dirs=[], |
||
15 | libraries=libraries, |
||
16 | export_symbols=[ |
||
17 | "build_tree", "destroy_tree", "new_node", |
||
18 | "predict_classification", "predict_regression"] |
||
19 | ) |
||
20 | return config |
||
21 | |||
26 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.