Skip to contentSkip to conversation

python3-blivetgui: use setuptools_legacy

PATCH Superseded Ross Burton 3 participants 6 messages Mar 7, 2022

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-blivetgui: use setuptools_legacy

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

---
 .../recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb +1 -1
index 995fb49622..7c3af1a8be 100644
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=master;protoc
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "x11 systemd"
 
-inherit setuptools3 python3native
+inherit setuptools3_legacy python3native
 
 RDEPENDS:${PN} = "python3-pygobject python3 \
                   python3-blivet gtk+3  \
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 python3-blivet: use setuptools_legacy

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

Reverts daba6521f which was a sympton of the bad usage.

---
 .../python-blivet/python3-blivet_3.4.3.bb                 | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb +1 -7
index fcadf130c9..bd57604f26 100644
@@ -19,16 +19,10 @@ SRC_URI += "\
 "
 SRC_URI[sha256sum] = "1b05b77f3ee35d82c7a577a168c9ba0204d3e9a87eb1975e5f9af47700eeff48"
 
-inherit pypi features_check systemd setuptools3
+inherit pypi features_check systemd setuptools3_legacy
 
 REQUIRED_DISTRO_FEATURES = "systemd"
 
-do_install:append() {
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${exec_prefix}/* ${D}${exec_prefix}
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${sysconfdir} ${D}
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${base_libdir} ${D}
-}
-
 RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \
                   parted python3-pyparted multipath-tools \
                   lsof cryptsetup libblockdev \
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [PATCH 2/2] python3-blivet: use setuptools_legacy

please rebase on master-next

Quoted 45 lines · Ross Burton

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

Reverts daba6521f which was a sympton of the bad usage.

---
 .../python-blivet/python3-blivet_3.4.3.bb                 | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb +1 -8
index fcadf130c9..bd57604f26 100644
@@ -19,16 +19,10 @@ SRC_URI += "\
 "
 SRC_URI[sha256sum] = "1b05b77f3ee35d82c7a577a168c9ba0204d3e9a87eb1975e5f9af47700eeff48"
 
-inherit pypi features_check systemd setuptools3
+inherit pypi features_check systemd setuptools3_legacy
 
 REQUIRED_DISTRO_FEATURES = "systemd"
 
-do_install:append() {
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${exec_prefix}/* ${D}${exec_prefix}
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${sysconfdir} ${D}
-    mv ${D}${PYTHON_SITEPACKAGES_DIR}${base_libdir} ${D}
-}
-
 RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \
                   parted python3-pyparted multipath-tools \
                   lsof cryptsetup libblockdev \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95848): https://lists.openembedded.org/g/openembedded-devel/message/95848
Mute This Topic: https://lists.openembedded.org/mt/89610238/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to Ross Burton

Can you rebase this on master-next ?

Quoted 34 lines · Ross Burton

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

---
 .../recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb +1 -2
index 995fb49622..7c3af1a8be 100644
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=master;protoc
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "x11 systemd"
 
-inherit setuptools3 python3native
+inherit setuptools3_legacy python3native
 
 RDEPENDS:${PN} = "python3-pygobject python3 \
                   python3-blivet gtk+3  \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95847): https://lists.openembedded.org/g/openembedded-devel/message/95847
Mute This Topic: https://lists.openembedded.org/mt/89610237/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Done and sent a v3 containing all of the patches in one series.

Ross

Quoted 38 lines · Khem Raj

Can you rebase this on master-next ?

Quoted 34 lines · Ross Burton

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

---
 .../recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb +1 -2
index 995fb49622..7c3af1a8be 100644
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=master;protoc
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "x11 systemd"
 
-inherit setuptools3 python3native
+inherit setuptools3_legacy python3native
 
 RDEPENDS:${PN} = "python3-pygobject python3 \
                   python3-blivet gtk+3  \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95847): https://lists.openembedded.org/g/openembedded-devel/message/95847
Mute This Topic: https://lists.openembedded.org/mt/89610237/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Awesome, thanks!

Quoted 44 lines · Ross Burton

Done and sent a v3 containing all of the patches in one series.

Ross

Quoted 38 lines · Khem Raj

Can you rebase this on master-next ?

Quoted 34 lines · Ross Burton

The setup.py installs to arbitrary target paths, so can't use the new bdist_wheel installation method.

---
 .../recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/python-blivet/python3-blivetgui_2.3.0.bb +1 -2
index 995fb49622..7c3af1a8be 100644
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=master;protoc
 inherit features_check
 REQUIRED_DISTRO_FEATURES = "x11 systemd"
 
-inherit setuptools3 python3native
+inherit setuptools3_legacy python3native
 
 RDEPENDS:${PN} = "python3-pygobject python3 \
                   python3-blivet gtk+3  \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95847): https://lists.openembedded.org/g/openembedded-devel/message/95847
Mute This Topic: https://lists.openembedded.org/mt/89610237/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-