-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
iconsur: update test #163904
iconsur: update test #163904
Conversation
Signed-off-by: Rui Chen <rui@chenrui.dev>
The test failure is correct and we should set up a separate venv for Upstream code doesn't work with system local ec=$? packageNames='pyobjc-core pyobjc-framework-Cocoa'
done=1
if (( ec )); then # The call failed.
(( retrying )) && die "An unexpected error occured: $output" # Even on-demand pyobjc installation failed -> abort.
# First, make sure that `python3` is actually Python, and not just the *stub* executable.
python3 --version | /usr/bin/grep -q ' 3.' || die "The 'python3' binary in your path is not functional, presumably because it is the preinstalled stub at /usr/bin/python3 that triggers a prompt for on-demand installation. Perform this installation, or, if you have Homebrew installed, install Python 3 with \`brew install python@3\`"
# Assume that the problem is the absence of the required pyobjc-* packages; attempt installation now.
# Tips for debugging:
# * To exercise this function, from the repo dir.:
# touch /tmp/tf; ./bin/fileicon set /tmp/tf ./test/.fixtures/img.png
# * To manage packages; prepend `sudo -H` to see machine-level packages
# pip3 list -v # shows installed packages and their locations
# pip3 uninstall -y pyobjc-core pyobjc-framework-Cocoa # uninstalls the required pyobjc-* packages
# * To manage pip3's package *cache*
# pip3 cache list # list cached packages
# pip3 cache purge # clear cache
# pip config set global.cache-dir false # disable cache globally
# pip config unset global.cache-dir # re-enable globacl cache
echo "Performing one-time user-level installation of required Python packages: $packageNames - this can take while..." >&2
pip3 install -q --user $packageNames || die "On-demand installation of Python packages failed unexpectedly." |
yeah, sounds about right note, the python3 env change was done in rikumi/iconsur#37 when macos removed the python2. |
HOMEBREW_NO_INSTALL_FROM_API=1 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 doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?found in #163887