todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

Homebrew Python Review #59

Open todd-dsm opened 2 years ago

todd-dsm commented 2 years ago
 DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at 
https://github.com/Homebrew/homebrew-core/issues/76621
todd-dsm commented 2 years ago

Post-install Steps flaked as well...

Saving some post-install app/lib details...                                     
...
Saving all...                                                                   
...                            
+ pip list                                                                      
tools/admin-app-details.sh: line 77: pip: command not found                     
todd-dsm commented 2 years ago

Factor for this as well https://github.com/Homebrew/homebrew-core/issues/76621

todd-dsm commented 2 years ago
Installing collected packages: resolvelib, PyYAML, pycparser, cffi, pynacl, cryptography, bcrypt, paramiko, ansible-core, ansible
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Successfully installed PyYAML-6.0 ansible-5.4.0 ansible-core-2.12.3 bcrypt-3.2.0 cffi-1.15.0 cryptography-36.0.1 paramiko-2.9.2 pycparser-2.21 pynacl-1.5.0 resolvelib-0.5.4
+ printHead 'Ansible Version Info:'
+ theHead='Ansible Version Info:'
+ printf %s '
  Ansible Version Info:
'

  Ansible Version Info:
+ ansible --version
ansible [core 2.12.3]
todd-dsm commented 2 years ago

https://www.freecodecamp.org/news/python-version-on-mac-update/amp/

todd-dsm commented 2 years ago

These python paths are just gross:

pythonBin="$(brew info python@${pyVers} | grep '/usr/local/opt/python@.*python3$' | tr -d ' ')"
pyPackages="$(brew info python@${pyVers} | grep site-packages$ | tr -d ' ')"

$pyVers must be used/maintained; this is just silly and should not be done.

Figure out a better way to determine which version is installed = automagically.