-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[CI] macos python update #34054
base: master
Are you sure you want to change the base?
[CI] macos python update #34054
Conversation
PR #34054: Size comparison from 686e73b to 3320cc2 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
docs/guides/BUILDING.md
Outdated
python3 -m pip install --upgrade setuptools | ||
python3 -m pip install --upgrade pip | ||
cd /usr/local/bin | ||
ln -sf python3.11 python3 | ||
ln -sf python3 python | ||
ln -sf pip3.11 pip3 | ||
ln -sf pip3 pip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't quite make sense. Why do we need to link things into /usr/local/bin but we already ran python3 before that and seemed to assume it's the "right" python3?
Also, is this step only needed to do pycontroller? Or will other builds and/or bootstrap also fail without this newer Python version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I inserted these commands in the wrong order. My goal was to change the default version of python used in the shell to python3.11. Now I think that doing it this way will change the settings not only for our project but for the whole system. How should I pass information to use a specific version of Python during bootstrapping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to tell bootstrap to use a specific Python, short of messing with PATH....
Note that installing via brew will likely end up using that Python for all sorts of things, since the brew stuff will come first in PATH.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @bzbarsky-apple, @jlatusek
are we blocked here? any chance we can continue with the upgrade of the stack to python 3.11 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to be done in sync with the upgrade to pigweed, because the version of pigweed we are using right now cannot bootstrap on an ARM Mac with python 3.11; see conversation above.
f334823
to
13847d6
Compare
PR #34054: Size comparison from ee49ebd to 13847d6 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #34054: Size comparison from 90310f2 to 04c8cc4 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #34054: Size comparison from d9bcdd3 to 82ee49d Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #34054: Size comparison from 29b055a to 2c5a8e5 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Problem
Currently used version of python for dawin platform is 3.9. In PR #33979 related to update ubuntu based image to 24.04 (python 3.12), there is a problem with updating pip packages. Updating pip packages is required due to the removal of some deprecated APIs in Python 3.12 - some packages cannot be installed without them being updated.
Changes