-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incase you wanted to build on MacOS #150
Comments
We distribute wheels for macOS, is there a reason they don't work for you? Or are you just providing this because the instructions don't currently exist? |
We thought you did! When trying to do a standard install ( But also a nice to have, in case someone wanted to know where a wheel came from. |
You should be able to do a It is possible that our dependencies are weird and the uv project support might not be functioning, I haven't used uv very much. We probably should document the build process better, maybe in build.md in the root directory. |
My team uses uv for our robot code, and everything resolves correctly. I know because I tested it on both Linux and macOS 😄 |
I do understand that it's a bit confusing considering on pypi
|
Just digging into Happy to support, glad super responsive ppl are working on this. GL w/ your bots! |
In case you wanted MacOS build instructions:
What you need before hand:
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 directoryuv init
to setup python package managementuv add -r rdev_requirements.txt
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.
The text was updated successfully, but these errors were encountered: