Skip to content
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

Fix: update for pip and docker #86

Merged

Conversation

wyattearp
Copy link
Contributor

Sadly the docker build has been broken because the systems started enforcing the "don't break system packages" for pip installs.

To stay closer to the actually build instructions, I've updated to install cmake from the repo as opposed to pip, this should really be problematic because nothing fancy is happening in cmake.

Additionally, I finally took the time to setup a docker hub account to host an image. I'm happy to create a buspirate org and leave it up there, but also, I didn't want to do that without asking because it wouldn't be owned by the real maintainers :)

@wyattearp
Copy link
Contributor Author

Huh - that's neat. It looks like there's something up with the Windows build.

CMake Error at CMakeLists.txt:11 (include):
  include could not find requested file:

    C:\Users\runneradmin/.pico-sdk/cmake/pico-vscode.cmake
    

This was definitely something I saw at the top of the cmake file that I'm wondering if it was supposed to make it into main at this time?

@wyattearp wyattearp force-pushed the fix-update-pipx-docker branch from 525e1bf to 3a31a89 Compare September 3, 2024 22:21
@wyattearp
Copy link
Contributor Author

I've got a change that looks like this will make WSL function correctly with picotool. Seems I've also been hitting this issue as well

raspberrypi/pico-sdk#1820 (comment)

I'm going to tweak the container again and see if this resolves the build to make it operational on both.

Moving back to draft.

@wyattearp wyattearp changed the title Fix: update for pip and docker DRAFT Fix: update for pip and docker Sep 5, 2024
@DangerousPrototypes
Copy link
Owner

Thank you for the updates and attention to the docker scripts. I'll away your final pull request.

@wyattearp wyattearp changed the title DRAFT Fix: update for pip and docker Fix: update for pip and docker Sep 7, 2024
@wyattearp
Copy link
Contributor Author

This should address the previous limitations on the docker container, also fixing the fact that the picotool wasn't actually being found correctly and doing the CMake things it was supposed to be doing.

Ref:

@DangerousPrototypes -- know any WSL users that can test out a windows .devcontainer in vscode? :-D

now using the default cmake instead of the python one to align to the
operting system's preferred directions. this shouldn't really be an
issue as there's nothing extremely fancy going on in cmake

also moving the docker compose to my personal repo for now, need to talk
with the bp team if they're fine with me actually pushing a real org for
them.
now using the default cmake instead of the python one to align to the
operting system's preferred directions. this shouldn't really be an
issue as there's nothing extremely fancy going on in cmake

also moving the docker compose to my personal repo for now, need to talk
with the bp team if they're fine with me actually pushing a real org for
them.
with the inclusion of these changes, we address the python weirdness for
cmake as well as we now correct the issue with picotool being unable to
bootstrap. it comes at the cost that if we update picotool to a
different version, we have to update the docker, but that appears to be
a documented issue in their bugs so ... until that's better we're going
to have to stick with that.

also added the .devcontainers for vscode users. this should just "bring
up" a build environment for the vscode system. tested only on linux, but
looking for windows volunteers.

do note that if it fails to build, it's likely that you have a
permissions issue on your current build/ directory and need to clean it
up first.
@wyattearp wyattearp force-pushed the fix-update-pipx-docker branch from abc6dba to 6e53e13 Compare September 8, 2024 20:49
@wyattearp
Copy link
Contributor Author

@DangerousPrototypes -- for what it's worth, both of the build did complete successfully, but it looks like the GH actions cancelled them -- you can see it got to the linking step in the logs and did what it was supposed to.

@DangerousPrototypes DangerousPrototypes merged commit 2c25f65 into DangerousPrototypes:main Sep 10, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants