Skip to content

Incase you wanted to build on MacOS #150

@mikeohyan

Description

@mikeohyan

In case you wanted MacOS build instructions:

What you need before hand:

To confirm you can compile some C++ code, in a terminal you should be able to run: clang --version

Now to compile:

  • git clone https://github.com/robotpy/mostrobotpy.git to a working directory
  • in that directory, run uv init to setup python package management
  • install the package requirements: uv add -r rdev_requirements.txt
  • install numpy uv add numpy
  • uv add pip

Now to run compile command, instead of the bash script, we're going to run this instead.
In the working directory, run:
uv run python -m devtolls ci run

This will run for... a while, if this works you'll get a bunch of wheels (.whl) in <working dir>/dist

Now to use these wheels, in your python project (assuming you are using uv to manage packages):
Run uv pip install <whl path> for whatever you need.
There are packages that will have dependencies, if asked, install what's missing first.
Some packages are ok with the modifer: uv pip install --no-deps <whl path>

--
NB: Jumped through these steps to get NetworkTables working for a project.

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