1 | import os |
||
2 | |||
3 | |||
4 | def configuration(parent_package='', top_path=None): |
||
5 | from numpy.distutils.misc_util import Configuration |
||
0 ignored issues
–
show
|
|||
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 | |||
22 | |||
23 | if __name__ == '__main__': |
||
24 | from numpy.distutils.core import setup |
||
0 ignored issues
–
show
The import
numpy.distutils.core could not be resolved.
This can be caused by one of the following: 1. Missing DependenciesThis error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands. # .scrutinizer.yml
before_commands:
- sudo pip install abc # Python2
- sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use
the command for the correct version.
2. Missing __init__.py filesThis error could also result from missing ![]() |
|||
25 | setup(**configuration(top_path='').todict()) |
||
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.