Skip to content

Commit

Permalink
macOS: clean up "-" parsing issue and update homebrew python location
Browse files Browse the repository at this point in the history
  The ansible output occasionally confuses the "-" in package names
  as a new line indicator.  Clean up the output by encapsulating the
  "-" in quotes.

  Additionally, attempt to correct a x86 homebrew issue where the
  incorrect python is run.
  • Loading branch information
jhoyt4 committed Jan 12, 2025
1 parent 80fdfdb commit c848a95
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions roles/mythtv-homebrew/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- nasm
- autoconf
- automake
- pkg-config
- 'pkg-config'
- cmake
- gpatch
- ninja
Expand All @@ -53,7 +53,7 @@
- glslang
- openssl
- '{{ database_version }}'
- mysql-client
- 'mysql-client'

- name: add optional libraries
set_fact:
Expand All @@ -76,13 +76,13 @@
- libhdhomerun
- libX11
- php
- sound-touch
- 'sound-touch'
- libcec
- zstd
- vulkan-headers
- vulkan-tools
- vulkan-loader
- molten-vk
- 'vulkan-headers'
- 'vulkan-tools'
- 'vulkan-loader'
- 'molten-vk'
- libdiscid

- name: develop a Python package version suffix
Expand Down Expand Up @@ -118,12 +118,12 @@
- libtool
- lame
- gnutls
- gnu-sed
- 'gnu-sed'
- curl
- texinfo
- texi2html
- font-dejavu
- font-liberation
- 'font-dejavu'
- 'font-liberation'

- name: print final list of packages
debug:
Expand Down
36 changes: 18 additions & 18 deletions roles/mythtv-macports/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@
- flac
- faac
- freetype
- fftw-3
- 'fftw-3'
- libass
- php84
- aom
- dav1d
- minizip
- apache-ant
- 'apache-ant'
- hdhomerun
- xorg-libX11
- liberation-fonts
- dejavu-fonts
- 'xorg-libX11'
- 'liberation-fonts'
- 'dejavu-fonts'
- soundtouch

- name: develop a Python package version suffix
Expand All @@ -102,19 +102,19 @@
set_fact:
macports_pkg_list:
- '{{ macports_pkg_list }}'
- perl{{ perl_version }}
- p{{ perl_version }}-date-manip
- p{{ perl_version }}-datetime-format-iso8601
- p{{ perl_version }}-dbi
- p{{ perl_version }}-image-size
- p{{ perl_version }}-io-socket-inet6
- p{{ perl_version }}-json
- p{{ perl_version }}-libwww-perl
- p{{ perl_version }}-http-request-ascgi
- p{{ perl_version }}-net-upnp
- p{{ perl_version }}-soap-lite
- p{{ perl_version }}-xml-xpath
- p{{ perl_version }}-xml-simple
- 'perl{{ perl_version }}'
- 'p{{ perl_version }}-date-manip'
- 'p{{ perl_version }}-datetime-format-iso8601'
- 'p{{ perl_version }}-dbi'
- 'p{{ perl_version }}-image-size'
- 'p{{ perl_version }}-io-socket-inet6'
- 'p{{ perl_version }}-json'
- 'p{{ perl_version }}-libwww-perl'
- 'p{{ perl_version }}-http-request-ascgi'
- 'p{{ perl_version }}-net-upnp'
- 'p{{ perl_version }}-soap-lite'
- 'p{{ perl_version }}-xml-xpath'
- 'p{{ perl_version }}-xml-simple'

- name: utility packages from ports
set_fact:
Expand Down
6 changes: 3 additions & 3 deletions roles/python/tasks/python-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- pip>=23.0.1
- pycurl
- requests
- requests-cache
- 'requests-cache'
- setuptools
- urllib3
- wheel
Expand Down Expand Up @@ -55,12 +55,12 @@
'{{ lookup("flattened", python_pkg_list) }}'

- name: specify python exectuables
set_fact: py_exe=python{{ python_exe_suffix }}
set_fact: py_exe={{ pkgmgr_prefix }}/bin/python{{ python_exe_suffix }}

- name: specify a location to install the python virtual environment
set_fact: pvenv_location=~/.mythtv/python-venv{{ python_package_suffix }}

- name: expand the use name in the pyvenv location variable
- name: expand the user name in the pyvenv location variable
set_fact: pvenv_location={{ pvenv_location | expanduser }}

- name: check for previous python virtual environment
Expand Down

0 comments on commit c848a95

Please sign in to comment.