-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
gr-osmosdr: use system python #54848
Conversation
The audit is correct and formula is using Python 2.7. The module is installed to
|
Yes, you need to remove |
Makes sense. What does the |
On macOS, nothing really. On Linux, it blocks installation. It's useful as a marker so we know what uses Python 2, and will help aid the future merge of homebrew-core and linuxbrew-core. |
Can Linux users install from homebrew-core? I just assumed they used linuxbrew-core. I'm not sure if you're saying it would block installation now or in the future when they are merged. |
They are using linuxbrew-core. But we are working on merging both repos; so that there is only homebrew-core in the future.
If we wanted to be really strict we should drop gr-osmosdr as it is using a deprecated Python 2, but we give the Mac users a little bit more of time before Apple completely removes Python 2. |
Thanks, that makes sense. |
Thanks @Rylan12 ! |
🤖 A scheduled task has triggered a merge. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?brew audit --strict gr-osmosdr
fails saying:It's worth noting that the formula installs successfully and passes the tests, just not the audit.
As far as I can tell, brew is using python3. The
libexec
directory containsvendor/lib/python3.8/site-packages/
and no Python 2.7 directory.Cheetah seems to be the only package that is needed. It seems that Cheetah has been replaced with Cheetah3, and the changelog says that version 3.2.5 works with Python 3.8. Note that when I tried to install Cheetah with pip in a Python 3.8 virtual environment it didn't work, while installing Cheetah3 did.
I used poet to generate the updated resource block.
When installing, brew gives this warning (although it doesn't seem related to me):
I based these changes off of pyside (#54755) as well as using urh and xdot as references. In those files, the
xy = Language::Python.major_minor_version Formula["python@3.8"].opt_bin/"python3"
line is used. I added that here as it looks like it will make updating versions in the future easier, although I'm not sure that will be necessary until Python 4 so this change might not be needed. It's worth noting that this change doesn't seem to affect the audit error.