Commit graph

18 commits

Author SHA1 Message Date
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Tomas Kopecek
d1a9105179 packaging: Block py3 compilation in py2 env
Related: https://pagure.io/koji/issue/3485
2022-09-22 14:10:31 +02:00
Tomas Kopecek
dfc5b01c9c fix packaging 2022-01-19 15:26:32 +01:00
Michal Privoznik
66ba134859 Install into /usr/lib rather than /usr/lib64/
In koji-1.22.0-129-g0ef3c751 I've changed the way how
site-packages directory is obtained. What I did not realize back
then is there can be multilib systems which will not search for
packages in /usr/lib64. But 64bit systems do look into /usr/lib.
Therefore, let's pick the location where both systems work.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261
Fixes: #2578
https://pagure.io/koji/issue/2578
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-11-27 10:00:52 +01:00
Michal Privoznik
0ef3c75185 Simplify obtaining of PKGDIR
So far, in all Makefiles we have a complicated way to construct
PKGDIR path which is used to install python modules into.
Firstly, python version is obtained, and then system prefix and
these are then used to construct the PKGDIR path. Well, we can do
better. We can use 'site.getsitepackages()[0]' to obtain exactly
the path we are after.

This also fixes the problem on distributions which have split
/usr/lib and /usr/lib64 directories, because with the way we are
constructing the PKGDIR path we assume that the directories are
the same (or one is a symlink to another). Well, that is not
always the case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-09-22 13:45:48 +02:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
f6125e2a03 handle byte-compiling for fedora 2019-02-17 22:33:52 -05:00
Mike McLean
3703c24495 add KOJI_MINIMAL flag to plugins Makefile 2019-02-17 22:33:52 -05:00
Mike McLean
6e57936e95 stop blocking py3 builder plugins in Makefile 2019-02-17 22:33:52 -05:00
Tomas Kopecek
715b40d6b9 spec changes for py3 hub
Fixes: https://pagure.io/koji/issue/905
2019-02-05 16:46:32 +01:00
Franz Chih-Ping Hsieh
42f5988dc3 use macro to support RHEL8 build
Related: #986
2019-01-28 06:06:50 -05:00
Tomas Kopecek
ccdb8ac34c Use python2/3 instead of python in Makefile/spec
Fixes: https://pagure.io/koji/issue/1018
2019-01-28 06:06:50 -05:00
Tomas Kopecek
1c0d5011c7 Makefile updates 2017-06-13 11:42:04 +02:00
Ralph Bean
7fd256cde1
Add subdirectory for builder plugin configuration. 2016-04-08 12:15:07 -04:00
Ralph Bean
69e77dd693
Make the other makefile vars here explicit now. 2016-04-08 12:10:59 -04:00
Ralph Bean
43ba5a6071
Install both hub and builder plugins.
This is a different take at https://pagure.io/koji/pull-request/45

Instead of installing just the runroot builder plugin explicitly, here we
separate the plugins out into hub and builder plugins explicitly and install
each type in turn.
2016-04-08 10:05:28 -04:00
Mike Bonnet
53296425c1 messagebus.py: a hub plugin to send notifications of events to an amqp broker 2009-12-22 13:44:12 -05:00
Mike Bonnet
2571537bb2 add koji-hub-plugins subpackage 2009-11-10 14:56:05 -05:00