Skip to content

[Bug] fail to build with python 3.13 #1962

Open
@hubutui

Description

@hubutui

Branch

main branch (mmpretrain version)

Describe the bug

similar to open-mmlab/mmengine#1616

Environment

none

Other information

quick fix, modify get_version in setup.py:

def get_version():
    version_dict = {}
    version_file = 'mmpretrain/version.py'
    with open(version_file, 'r', encoding='utf-8') as f:
        exec(compile(f.read(), version_file, 'exec'), version_dict)
    return version_dict['__version__']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions