Mac bazelrc build tip (#1418)

* Copy build tip from Linux to Mac instructions

* Update build tip

* Accept BSD 3 clause license
This commit is contained in:
Gesa Stupperich 2021-10-12 07:58:42 +01:00 committed by GitHub
parent 4e405f1cc3
commit 5d093e1142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>
Ren Tatsumoto <tatsu@autistici.org>
lolilolicon <lolilolicon@gmail.com>
Gesa Stupperich <gesa.stupperich@gmail.com>
********************

View file

@ -38,6 +38,17 @@ $ ln -sf /usr/local/bin/{python3.9,python}
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.
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
From the top level of Anki's source folder: