Commit Graph

32 Commits

Author SHA1 Message Date
Cameron Clough eabba3ca86 update update_requirements.sh (#28002)
* simplify update_requirements.sh

* check POETRY_VIRTUALENVS_CREATE
old-commit-hash: 16c56e644e
2023-04-21 22:36:10 -07:00
Adeeb Shihadeh 09a1de09a3 update_requirements: skip pre-commit install on mac
old-commit-hash: 28d0459c69
2022-12-30 14:45:25 -08:00
Cameron Clough 89c92996bb fix dependencies for macOS (#26684)
* misc changes

* sort and remove duplicates

* only linux

* upgrade to pip 22.3.1
old-commit-hash: e6182cb9aa
2022-12-08 20:15:37 -08:00
Cameron Clough 132e5fe200 tools: pyenv setup fix (#26601)
* setup pyenv immediately

* sudo

* fix
old-commit-hash: 821d8ff12f
2022-11-30 15:11:26 -08:00
Cameron Clough 51c3941fff add poetry-dotenv-plugin (#26216)
old-commit-hash: 1be5cecfa2
2022-10-23 15:49:32 -07:00
Cameron Clough 9cd3c53e6d install xx deps with XX env (#26205)
old-commit-hash: db6c9b9d45
2022-10-21 23:09:24 -07:00
HaraldSchafer 3ca9b7f02e Pipenv -> poetry (#24858)
* Try poetry

* Remove casadi for now

* Update docker

* Copy pipfiles

* add casadi back

* Too many slashes

* New poetry api

* Install system

* Try again

* No more pipenv

* new dependencies

* updates

* poetry 1.2.1, install dev dependencies

* keep install pipenv for xx for now?

* add pre-commit checks for poetry

* poetry lock is too slow

* update pip

* migrate to poetry groups

* update lockfile

* don't need to specify dev group unless it is made optional

* always install poetry

* set POETRY_VIRTUALENVS_CREATE instead, and use pipenv for xx

* use env for docs docker image

* alphabetical

* poetry 1.2.2

* add dev dependencies for typing

added in aacf6ae3

* remove constraint

* fix PIPENV_SYSTEM

* remove constraint

* don't need this here

* bump

* bump pipenv

adds support for installing local pyprojects (can add openpilot as dependency of xx)

* README improvements

* probably not necessary

* bump pip

* maybe not necessary?

* revert

* don't install openpilot itself into the virtual env

* remove PySide2 and shiboken2

reverts 3e41c775cbf670740ac648a8614d2d6b433312fe

* remove Pipenv, add xx dependencies, sync system python

* add pipenv as xx dep

* semver package constraints, use old lockfile versions

* fix casadi

* remove whitespace

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

* disable poetry cache

* cleanup

* prefer config file

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a98d105cb9
2022-10-21 16:23:56 -07:00
Adeeb Shihadeh 0325a33752 add pyside2 package (#25602)
old-commit-hash: c6b749fb96
2022-08-30 15:10:52 -07:00
Greg Hogan 193e80665d setup: perform all pyenv setup in a single place (#23408)
* consolidate pyenv setup

* cleanup openpilot_env.sh

* undo openpilot_env.sh changes

* needed on mac

* add that back

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f2f8e7b930
2022-08-20 23:13:19 -07:00
Adeeb Shihadeh 66e4826dac fix pre-commit install when subdirectories don't have a config
old-commit-hash: a958213ec7
2022-03-13 20:00:23 -07:00
Adeeb Shihadeh 5af4ebb7ce no git in CI
old-commit-hash: d6f6e024b3
2022-03-13 16:37:53 -07:00
Adeeb Shihadeh d6b95f3d2c install pre-commit hooks for all submodules
old-commit-hash: 8252134e62
2022-03-13 16:18:01 -07: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
Greg Hogan f19c9f2e72 setup: remove duplicate pipenv install (#23406)
old-commit-hash: bafdb20eb1
2022-01-05 13:25:41 +01:00
Greg Hogan bd622f8583 setup: update pyenv before installing python (#23405)
old-commit-hash: 23346ae63c
2022-01-05 00:25:34 -08:00
Greg Hogan f6a9445de8 tools: configure PYTHONPATH in pipenv (#23361)
* automatically set PYTHONPATH in pipenv

* remove other place this was set
old-commit-hash: 3e5a273022
2022-01-03 20:15:10 -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
Greg Hogan 0ff7695dcb Revert "update_requirements.sh: install both Pipfiles"
This reverts commit 97ea2c37e0e831216969b8c04e9053022e39ca10.

old-commit-hash: 148c739ec7
2021-11-19 11:48:34 -08:00
Willem Melching 541d2c2848 update_requirements.sh: install both Pipfiles
old-commit-hash: dec2cb6a65
2021-11-04 16:31:49 +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
HaraldSchafer b8ba7a0d5d notebook precommit install (#22382)
* notebook precommit install

* Update update_requirements.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 06944165d0
2021-09-29 19:05:11 -07:00
ZwX1616 0cc1f42e44 install hook for xx
old-commit-hash: c01e622e82
2021-09-21 21:16:05 -07:00
Greg Hogan 7670528be8 better way to set pipfile
old-commit-hash: 2fe5eff88c
2021-03-09 17:56:23 -08:00
Greg Hogan 57292073e1 use xx pipfile when available
old-commit-hash: 81433f1e54
2021-03-09 17:46:45 -08:00
Adeeb Shihadeh ebf758d174 update_requirements: install pipenv
old-commit-hash: c8bbb8ea87
2021-03-09 13:41:19 -08:00
Greg Hogan f9db1e3728 upgrade pip
old-commit-hash: 92bc71c2e7
2020-11-18 16:25:38 -08:00
Greg Hogan f98a0da179 update update_requirements.sh
old-commit-hash: c0715b57e2
2020-10-23 16:09:34 -07:00
Greg Hogan 71e76fc791 make scons work immediately after install
old-commit-hash: 0aaeaef79d
2020-10-21 11:44:26 -07:00
Greg Hogan eba45b31ef improve update_requirements.sh
old-commit-hash: 7114cc29ab
2020-10-21 11:36:18 -07:00
Greg Hogan 95516d3ea4 update pipenv install
old-commit-hash: cad76bf28b
2020-09-15 18:04:53 -07:00
Willem Melching ea052d61b3 Update pip to 20.1.1 so python-opencv installation succeeds
old-commit-hash: b16e90c781
2020-07-24 12:13:00 +02:00
George Hotz 06c6ee312b root directory non hidden files
old-commit-hash: 012535a84e
2020-01-17 10:22:00 -08:00