-
Notifications
You must be signed in to change notification settings - Fork 19
Description
In case you wanted MacOS build instructions:
What you need before hand:
- Install XCode from the Apple App Store (this should get
clang
setup) uv
to manage python environments (https://docs.astral.sh/uv/getting-started/installation/)
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.