I pushed 1.2.5 with the fix and added reference to here in Docs/Changelog
My apologies again and thank you for your help.
| Git Clone URL: | https://aur.archlinux.org/python-pynotify.git (read-only, click to copy) |
|---|---|
| Package Base: | python-pynotify |
| Description: | Python Inotify Class |
| Upstream URL: | https://github.com/gene-git/pynotify |
| Keywords: | inotify python |
| Licenses: | GPL-2.0-or-later |
| Submitter: | GeneArch |
| Maintainer: | GeneArch |
| Last Packager: | GeneArch |
| Votes: | 3 |
| Popularity: | 0.000098 |
| First Submitted: | 2024-03-29 22:40 (UTC) |
| Last Updated: | 2025-11-01 19:02 (UTC) |
« First ‹ Previous 1 2
I pushed 1.2.5 with the fix and added reference to here in Docs/Changelog
My apologies again and thank you for your help.
Bah so sorry - you'r right its a bug with PKGBUILD. I am really glad you tracked it down.
I will fix the PKGBUILD to include the dependency on python-installer.
I have found what the issue was.
I just had to read more closely the output from running the makepkg command. The build was missing python-installer but as it is not in the dependency list it continued with the build but missed all the python-3.12 directory stuff out.
So I manually installed python-installer and then when I ran makepkg it worked correctly.
Then running wg-client afterwards gave a working binary.
Couple things might be good to check.
1) After a fresh makepkg what is in
ls pkg/python-pynotify/usr/lib/
Should be python3.12 as you said.
2) what is in
ls src/pynotify
Did makepkg succeed in pulling the source code from github? If not try manually cloning it:
cd src
git clone git@github.com:gene-git/pynotify.git
Okay, that is weird. I did it three times starting each time with an empty directory.
I am running python-3.12 but I will have a look and see if there are any older directories lying around that have not got cleared out.
Thanks for your help. At least I know it is working okay for you so there has to be something wrong with my setup somewhere.
I wonder if somehow there was an "old" build there for python 3.11 - probably not but scratching my head trying to come up with explanation.
If so, a clean build starting in an empty directory should work fine as it will pick up current version of python.
Ah ok - I will look into that. I did this and it worked fine too:
$ rm -rf python-pynotify*
$ git clone https://aur.archlinux.org/python-pynotify.git
cd python-pynotify
makepkg
then check "ls pkg/python-pynotify/usr/lib/python3.12/site-packages/pynotify" - it is fine
and package
pacman -Ql -p python-pynotify-1.2.4-1-any.pkg.tar.zst |grep -v share
It is fine too.
Your method is different to mine. I will give it a go.
The way I was doing it was as per the Arch User Repository wiki page. https://wiki.archlinux.org/title/Arch_User_Repository
git clone https://aur.archlinux.org/python-pynotify.git
cd python-pynotify
makepkg -sirc
pacman -U python-pynotify-1.2.4-1-any.pkg.tar.zst
Thanks for letting me know - I am trying to reproduce this but it works for me. How are you building the package (oops you said using makepkg - never mind)
Here's what I did :
wget https://aur.archlinux.org/cgit/aur.git/snapshot/python-pynotify.tar.gz
tar xf python-pynotify.tar.gz
cd python-pynotify
makepkg
...
Then:
ls pkg/python-pynotify/usr/lib/python3.12/site-packages/pynotify
Which looks fine. Check the package:
pacman -Ql -p python-pynotify-1.2.4-1-any.pkg.tar.zst
Also looks fine.
I am trying to build this as a dependency for wg-client. When I build wg-client it finds python-pynotify is present (does not flag it up as missing). However then running wg-client gives the message that python-pynotify is missing.
I then ran pacman -Ql python-pynotify and the only files installed are under /usr/share.
I also checked the contents of the python-pynotify-1.2.4-1-any.pkg.tar.zst file created after running makepkg -sirc and this also only has the /usr/share directory contents. I have tried building python-pynotify from scratch three times and each time I have got the same result of only the /usr/share files.
There are no files for /usr/lib/python3.12/site-packages in the pkg.tar.zst file
Am I doing something wrong in my package building or is there a bug somewhere?
Pinned Comments
GeneArch commented on 2025-01-03 10:34 (UTC)
Note on getting the git signing public key. Any of the following:
1) Get fresh copy of the package (on this page Package Actions Download Snapshot) Unpack tar file and the key will be in keys/pgp:
gpg --import < keys/pgp/*.asc
2) Available on github (same account as the package source): https://github.com/gene-git/blog/tree/master/git-keys
3) From authors website : https://www.sapience.com/tech
4) via WKD curl $(gpg-wks-client --print-wkd-url arch@sapience.com) | gpg --import