Yay displays script instead of installing a package

Hi, I wanted to install an AUR package via yay but when I wanted to install it, it somehow just displays a python script. Idk what I did wrong here but I tried things around but its still showing this up without installing it. Can someone help me? Thanks.

[🧱] × LANG=C yay -S grapejuice-git
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Repo (14) python-msgpack-1.0.2-2  python-cachecontrol-0.12.6-5  python-contextlib2-0.6.0.post1-3  python-distlib-0.3.3-1  python-html5lib-1.1-6  python-tomli-1.2.1-1  python-pep517-0.11.0-1  python-progress-1.6-1  
python-retrying-1.3.3-9  python-resolvelib-0.5.5-1  python-toml-0.10.2-3  python-cryptography-35.0.0-1  python-pyopenssl-20.0.1-1  python-pip-20.3.4-1
Aur (1) grapejuice-git-3.65.16.fce7ae7-1

:: Proceed to review? [Y/n]: n

╭─[email protected] in ~ took 3s
[🔴] × LANG=C yay -S grapejuice-git
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Repo (14) python-msgpack-1.0.2-2  python-cachecontrol-0.12.6-5  python-contextlib2-0.6.0.post1-3  python-distlib-0.3.3-1  python-html5lib-1.1-6  python-tomli-1.2.1-1  python-pep517-0.11.0-1  python-progress-1.6-1  
python-retrying-1.3.3-9  python-resolvelib-0.5.5-1  python-toml-0.10.2-3  python-cryptography-35.0.0-1  python-pyopenssl-20.0.1-1  python-pip-20.3.4-1
Aur (1) grapejuice-git-3.65.16.fce7ae7-1

:: Proceed to review? [Y/n]: Y

:: Downloading PKGBUILDs...
PKGBUILDs up to date
/home/gu-army/.cache/paru/clone/grapejuice-git/.gitignore
pkg/
src/
*.zst
grapejuice/


/home/gu-army/.cache/paru/clone/grapejuice-git/PKGBUILD
# Maintainer: BrinkerVII <[email protected]>

pkgname=grapejuice-git
_pkgname=grapejuice
_repository=https://gitlab.com/brinkervii/grapejuice.git
pkgver=3.65.16.fce7ae7
pkgrel=1
pkgdesc='Simple Wine+Roblox management tool'
arch=('x86_64')
url="${_repository}"
makedepends=('git')
depends=(
'python-pip'
'python-gobject'
'python-psutil'
'python-packaging'
'python-requests'
'python-setuptools'
'cairo'
'gtk3'
'gobject-introspection'
'desktop-file-utils'
'xdg-utils'
'xdg-user-dirs'
'gtk-update-icon-cache'
'shared-mime-info'
'lib32-gnutls'
'lib32-openssl'
)
optdepends=('wine: Required to run Roblox Studio, but left out of depends to let the user decide on custom builds')
provides=("${_pkgname}")
license=('GPL3')
source=("${_pkgname}"::git+"${_repository}")
sha256sums=('SKIP')

_get_project_root() {
echo "$srcdir/grapejuice"
}

pkgver() {
cd "$_pkgname"

_project_root=$(_get_project_root)
export PYTHONPATH="$_project_root/src"

_commit_id=$(git rev-parse --short HEAD)
_grapejuice_version=$(python3 -c 'from grapejuice import __version__; print(__version__)')

echo "${_grapejuice_version}.${_commit_id}"
}

package() {
_python_version=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')

_project_root=$(_get_project_root)
cd "${_project_root}" || exit 1

export PYTHONPATH="$_project_root/src"
python3 -m grapejuice_packaging linux_package

_built_package_root="${_project_root}/dist/linux_package"
cd "${_built_package_root}" || exit 1
tar -xf *.tar.gz -C "${pkgdir}"

mv "${pkgdir}/usr/lib/python3/dist-packages" "${pkgdir}/usr/lib/python${_python_version}"
rm -r "${pkgdir}/usr/lib/python3"
}


(END)⏎                                                                                                                                                                                                                                        
╭─[email protected] in ~ took 10s
[🧱] ×

Press "N" instead of "Y".

I did this in the first try in my sended output. It just ends then.

I always take the path of least resistance before getting my hands dirty figuring out what the problem might be with a pkg build.

I usually test with another AUR helper if my initial try fails. There are many good AUR helpers you could try such as Paru, Trizen, Pacaur etc.

That's no python script, that's a PKGBUILD. You gotta press Q after reading it :eyes:

2 Likes

Ok i tried with the different ones but its still the same output. Thing is that I tried firstly to install it normal via source. Although the menu is found it I cant open it.

Bruh ok then I know now how to install the other aurs which had the same issues xdd. thx

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.