Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

With Python 3, YOTTA_BUILD_VCS_xxx constants are bytes objects not str #838

@dpgeorge

Description

@dpgeorge

When installing and using yotta with Python 3, the YOTTA_BUILD_VCS_ID and YOTTA_BUILD_VCS_DESCRIPTION macros automatically defined in yotta_build_info.h come out as bytes objects and hence are of the form b'...'. They should probably be just plain str objects so the "b" and quotes are not there.

Is yotta intended to be used with Python 3? To fix, I guess it's simply a matter of decoding to UTF-8 the output of git commands executed in lib/vcs.py.

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