You are not logged in.

#1 2022-07-13 15:34:32

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

How do I properly package a python script in the AUR?

How do I properly package a python script in the AUR?

PKGBUILD as of now:

#maintainer jaydendev
pkgname="pclish"
pkgver="0.7.0"
pkgrel="0.7"
pkgdesc="Python Command-Line Shell"
arch=("x86_64" "arm")
depends=("python" "pyinstaller")
license=("MIT")
source=("https://dl.jaydendev.repl.co/pclish-0.7.0.zip")

build() {
        cd "${srcdir}/${pkgname}"
}

Last edited by JaydenDev (2022-07-13 17:45:29)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#2 2022-07-13 17:48:18

mpan
Member
Registered: 2012-08-01
Posts: 1,582
Website

Re: How do I properly package a python script in the AUR?


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Online

#3 2022-07-13 18:49:37

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

Re: How do I properly package a python script in the AUR?

mpan wrote:

I have read both, but this isn't my request. However, I might as well marked this as closed. Because I probably can just rename the python file (remove the extension), and use the same method as a bash script would be installed.


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#4 2022-07-13 19:17:29

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: How do I properly package a python script in the AUR?

As you also maintain the upstream package you could add a PEP 517 compliant pyproject.toml upstream then you could follow the python packing guidelines.

Offline

#5 2022-07-13 21:06:20

mpan
Member
Registered: 2012-08-01
Posts: 1,582
Website

Re: How do I properly package a python script in the AUR?

JaydenDev wrote:

I have read both, but this isn't my request.

So, what is the request? An answer can’t be given without knowing the question, and the only question stated is a very general one.

JaydenDev wrote:

Because I probably can just rename the python file (remove the extension)

Maybe yes, may be not. Depends on the PKGBUILD, but we do not see any to provide comments. The only PKGBUILD presented so far doesn’t contain anything like that and doesn’t follow the linked guidelines too.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Online

#6 2022-07-13 22:04:27

yochananmarqos
Member
Registered: 2020-02-05
Posts: 217

Re: How do I properly package a python script in the AUR?

JaydenDev wrote:

How do I properly package a python script in the AUR?

Definitely not how it was submitted previously (PRQ#36392).

Take a look at other PKGBUILDs in the AUR that use pyinstaller for reference.

Last edited by yochananmarqos (2022-07-13 22:05:01)

Offline

Board footer

Powered by FluxBB