Mac bazelrc build tip (#1418)

* Copy build tip from Linux to Mac instructions

* Update build tip

* Accept BSD 3 clause license

(cherry picked from commit 5d093e1142)
This commit is contained in:
Gesa Stupperich 2021-10-12 07:58:42 +01:00 committed by Damien Elmes
parent 03a555c25a
commit 645704d52d
2 changed files with 12 additions and 0 deletions

View file

@ -86,6 +86,7 @@ Thore Tyborski <github.com/ThoreBor>
Alexander Giorev <alex.giorev@gmail.com> Alexander Giorev <alex.giorev@gmail.com>
Ren Tatsumoto <tatsu@autistici.org> Ren Tatsumoto <tatsu@autistici.org>
lolilolicon <lolilolicon@gmail.com> lolilolicon <lolilolicon@gmail.com>
Gesa Stupperich <gesa.stupperich@gmail.com>
******************** ********************

View file

@ -38,6 +38,17 @@ $ ln -sf /usr/local/bin/{python3.8,python}
This linking will not work if you're using the system Python from Big Sur, This linking will not work if you're using the system Python from Big Sur,
which is one of the reasons why we recommend using Python from python.org. which is one of the reasons why we recommend using Python from python.org.
But even so, if you still have a Python 2 binary on your system linked to
/usr/bin/python, it can happen that Bazel uses it and the build process
errors. In that case you might want to try forcing Bazel to use the
Python 3 binary by putting the following into a file called user.bazelrc at
the top of this repo (assuming /usr/local/bin/python links to your Python
3.9 binary).
```
build --action_env=PYO3_PYTHON=/usr/local/bin/python
```
## Running Anki during development ## Running Anki during development
From the top level of Anki's source folder: From the top level of Anki's source folder: