Skip to content

The package_data configuration in setup.py is incorrect #642

@WangLocker

Description

@WangLocker

In the setup.py file, the package_data configuration is incorrect. The current configuration is:

package_data={
'pyod.utils.model_analysis_jsons': ['*.json'],
},

However, this configuration is incorrect because pyod.utils.model_analysis_jsons is not a Python package (it doesn't have an init.py file) but a data directory. This will cause errors in autoselector during operation (unable to find files).

It is recommended to modify it to:

package_data={
'pyod.utils': ['model_analysis_jsons/*.json'],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions