Commit Graph

28 Commits

Author SHA1 Message Date
Adeeb Shihadeh
ce42e116c9 mac setup: add catch2
old-commit-hash: c65ca6ab1d
2022-03-05 15:29:06 -08:00
Andrew
c8ef3e4990 fix mac_setup w/ tools+plotjuggler (#23552)
* fix pycurl issue:
* use newer curl backend for pip install
* update lib paths based on brew prefix
* fix cert issue when using pycurl using certifi
* make output setup nicer

* fix linter

* typo

* dont need that actually

* revert

* pipenv in brew

* forgot this

* make brew available on fresh install

* undo

* more undo

* oops

* use sytem curl, but homebrew openssl

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: df627de7bf
2022-02-23 13:04:50 +01:00
Andrew
192978753d mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 6664421710
2022-01-07 15:15:18 -08:00
Adeeb Shihadeh
02f1866b61 CI: use ubuntu_setup.sh (#23349)
* CI: use ubuntu_setup.sh

* works?

* need to fix paths

* set paths

* no batman for now

* pyenv version

* rehash after install packages

* unify python install

* revert that

* fix pyenv path

* no pipenv

* flip that

* fix rehash

* skip that

* revert panda
old-commit-hash: 066e3e3626
2022-01-02 14:47:16 -08:00
Adeeb Shihadeh
55e0fb4a55 fix setup scripts if git isn't installed
old-commit-hash: 7cd6a88638
2021-12-31 19:29:38 -08:00
Adeeb Shihadeh
d710eed2d9 mac_setup: install git-lfs
old-commit-hash: 8fe9c0ef93
2021-12-31 10:08:34 -08:00
eFini
22ea8f17c2 macOS: Fix missing pip command issue. (#22924)
* Fixed missing pip command issue.

* add path to openpilot_env.sh for mac
old-commit-hash: a87190342b
2021-11-17 11:23:05 +01:00
lipniak
9fcb713e9c tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1d55f2f23e
2021-10-31 16:37:07 +01:00
Lasse Skov
aade2e1025 tools: use .python-version in setup scripts (#22511)
* Updated tools installer to us.python-e version file

* Updated tools installer to use .python-version file

* fix path

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 25def3cc34
2021-10-10 16:03:56 -07:00
Ankush Girotra
5c63aa3f7c fix mac setup script for zsh (#20708)
Co-authored-by: Ankush Girotra <ankush.girotra@dlzpgroup.com>
old-commit-hash: 18a59c0d4b
2021-04-20 17:28:10 -07:00
Philipp Braun
ed5606ecba Add mac requirements (#20420)
* Add mac requirements

* Remove bashrc spam
old-commit-hash: 523d36e7ca
2021-03-30 15:45:28 -07:00
Willem Melching
285e086d80 use scons to build panda fw (#20457)
* use scons to build panda fw

* add arm gcc to dockerfile

* install gcc on macOS

* pandad shutdown test is flaky and broken due to faster startup

* bump panda
old-commit-hash: 0e338d2b91
2021-03-24 14:44:39 +01:00
Adeeb Shihadeh
1eed3b756b fix cached mac CI run (#20294)
old-commit-hash: 92c5bbf92d
2021-03-09 19:37:17 -08:00
Adeeb Shihadeh
8ec4fa1002 update to python 3.8.5 (#20217)
old-commit-hash: 2034a04750
2021-03-09 13:38:22 -08:00
Adeeb Shihadeh
905105e94a fix mac CI (#19829)
* hopefully this isn't slow

* upgrade

* try this

* apparently this is the right way to do this
old-commit-hash: 14f9700f6a
2021-01-18 17:28:30 -08:00
Willem Melching
90dda34c8b new macOS cache
old-commit-hash: 0a911a5e28
2021-01-18 16:17:23 +01:00
Willem Melching
42ba637d9b Fix macOS CI (#19822)
* does this fix the hash

* this is not the solution

* restore key doesnt work
old-commit-hash: 667390701f
2021-01-18 15:08:11 +01:00
Willem Melching
2bef6edc2d fix mac build
old-commit-hash: 4fa5b2091f
2021-01-18 14:35:47 +01:00
Mayfield
dc72980c83 Make macos ci homebrew dep-caching fast (#19632)
* try out /usr/local for homebrew caching

* TEMP: disable non-macos jobs

* TEMP: disable more

* sizes

* temp: nothing change

* more

* try -1

* quotes

* delete existing downloads

* fix ~ expansion

* nothing

* try caching cellar

* move to yaml

* nothing

* nothing

* asdf

* nothing

* fixed cache key

* nothing

* stay in home dir

* keep zstd

* brew link

* fix cleaning?

* brew link in yaml

* fix zstd exclusion

* capnp

* revert mac_setup

* finish up

* done
old-commit-hash: cbc25cc0f1
2021-01-03 12:33:42 -08:00
grekiki
9f0611507e Qt Offroad stats (#19498)
* probably broke a lot, need the commit though

* finally works

* make it work...

* ...

* kind of works

* better styling

* all should work

* tiny cleanup

* temp

* looks nicer

* create JWT in C++

* kilometers -> km

* use correct free methods

* dont put code in assert statement

* Build JWT payload dynamically

* get dongle id once

* include cleanup

* Remove qDebug

* Update drive_stats.cc

Github is a nice editor :)

* swap week and all and fix sconscript

* install openssl

* openssl include dirs on mac

* is this where openssl is?

* It's here

* small cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5b26c97141
2020-12-18 13:29:20 +01:00
Adeeb Shihadeh
ffd5ea18bc Fix mac CI (#2439)
old-commit-hash: 30c50e64fd
2020-10-28 14:12:56 -07:00
Adeeb Shihadeh
8f9f31778d get rid of rest of czmq
old-commit-hash: f571b7c751
2020-10-27 19:07:56 -07:00
Willem Melching
ee0db09976 More macOS CI fixes (#2352)
* Revert "Fix macOS CI (#2345)"

This reverts commit aab966d935e2033254abd64a1fae97145dcc3a6a.

* ignore update output
old-commit-hash: e23bb6113b
2020-10-16 20:12:44 +02:00
Willem Melching
e952dd722d Fix macOS CI (#2345)
old-commit-hash: 72a996a885
2020-10-15 14:16:41 +02:00
Greg Hogan
f1835a740a more pipenv version updates
old-commit-hash: be2b093d6e
2020-09-15 18:25:16 -07:00
Willem Melching
473fb11d34 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e115c51452
2020-08-20 17:16:44 +02:00
Michael Honan
df26e99856 Setup script improvements to MacOS / Ubuntu (#2012)
* Setup script improvements to MacOS / Ubuntu

scons isn't actually required from brew install

pyenv init on all envs

added installation to .zshrc on macos with better dir logic

Using git to detect project root for ubuntu bashrc install

Check shell and determine correct RC file

Update tools/mac_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Sourcing RC file only if it's found

Removed unnecessary source of rc file

Submodules should never have been bumped...

Output the $RC_FILE when successfully installed

pyenv init every time, and skip RC install on CI

Confused bash conditionals, opposite of what I meant

* Was missing libusb on a fresh MacOS 10.15.6 install

Co-authored-by: Michael Honan <michaelhonan@Michaels-MacBook-Pro.local>
old-commit-hash: 4a9228fcc7
2020-08-14 18:03:55 -07:00
Adeeb Shihadeh
355e4a40a6 Build openpilot on mac in CI (#1792)
* build on mac in CI

* coreutils

* python stuff

* pipenv

* newer clang

* init pyenv

* verbose

* init pyenv

* install eigen

* ffmpeg

* sdl

* libav

* libtool

* glfw

* add pipfile as cache key

* test cache

* fix cache path

* brew link

* update tools readme

* don't cache on pipfile

* skip python install if installed

* unlink

* simpler cachingm

* here's your key

* cache pip too

* cache pyenv
old-commit-hash: c450110f96
2020-08-10 00:44:24 -07:00