]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
install all python files to platlib
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Mar 2025 13:25:29 +0000 (14:25 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Mar 2025 13:29:06 +0000 (14:29 +0100)
A single python package should not be split between purelib and platlib.
Install everything into platlib as before.

This is a partial revert of commit ecd43ab512e7 ("install python modules
to purelib and platlib").

Makefile.in

index 1741ee757359d7d365fb142a239276ffed310b0e..f8fe2909c8adba288c01c4689e1bc5342cdf9f6b 100644 (file)
@@ -163,13 +163,11 @@ install-py: _snack.$(SOEXT)
 ifneq ($(PYTHONVERS),)
        @for ver in $(PYTHONVERS); do \
                PLATLIB=`$$ver -c "import sysconfig; print(sysconfig.get_path('platlib'))"`; \
-               PURELIB=`$$ver -c "import sysconfig; print(sysconfig.get_path('purelib'))"`; \
                [ -d $(instroot)/$$PLATLIB ] || install -m 755 -d $(instroot)/$$PLATLIB ;\
-               [ -d $(instroot)/$$PURELIB ] || install -m 755 -d $(instroot)/$$PURELIB ;\
                echo install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$$PLATLIB;\
                install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$$PLATLIB;\
-               echo install -m 644 snack.py $(instroot)/$$PURELIB;\
-               install -m 644 snack.py $(instroot)/$$PURELIB;\
+               echo install -m 644 snack.py $(instroot)/$$PLATLIB;\
+               install -m 644 snack.py $(instroot)/$$PLATLIB;\
        done
 endif