Skip to content

build-stubs.sh needs to be updated #148

@wmerkens

Description

@wmerkens

The build-stubs.sh script needs to be updated to the newer method of setting up the circuitpython repo download from git.

The current script would have you do the following.

    git clone --depth 1 --branch main https://github.com/adafruit/circuitpython.git

    cd circuitpython
    git submodule init
    git submodule update extmod/ulab

This will cause the stubs not to build properly due to the way certain parts are not retrieved correctly.

circuitpython has changed the way they deal with submodules, and they don't use the git submodule options.

Instead, they now use a Makefile system, so the top lines of the script need to change.

    git clone https://github.com/adafruit/circuitpython.git
    
    cd circuitpython
    git checkout 9.2.0  # release version of circuitpython
    
    # use the make commands instead of the git commands
    make fetch-all-submodules

This takes longer, but you will get correctly built stubs and boards now.

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