diff options
| author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-08-30 10:50:49 +0200 |
|---|---|---|
| committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-08-30 10:52:22 +0200 |
| commit | a0f7fa79d4df333865c7c90b93935e88fbf591cc (patch) | |
| tree | db5c9f3d32336444d63b056e61da6b9ac3ca9d64 /dev-python/QtPy | |
| parent | 8aa6cbccf3b7568b45ac055074ce494be1164106 (diff) | |
| download | gentoo-a0f7fa79d4df333865c7c90b93935e88fbf591cc.tar.gz gentoo-a0f7fa79d4df333865c7c90b93935e88fbf591cc.tar.bz2 gentoo-a0f7fa79d4df333865c7c90b93935e88fbf591cc.zip | |
dev-python/QtPy: fix disabling of pyqt5 or pyqt6
The import statement now spans three lines which broke
our sed
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python/QtPy')
| -rw-r--r-- | dev-python/QtPy/QtPy-2.4.0.ebuild | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-python/QtPy/QtPy-2.4.0.ebuild b/dev-python/QtPy/QtPy-2.4.0.ebuild index 677fc3b3bda7..e87365436358 100644 --- a/dev-python/QtPy/QtPy-2.4.0.ebuild +++ b/dev-python/QtPy/QtPy-2.4.0.ebuild @@ -159,10 +159,10 @@ src_prepare() { sed -i -e 's:--cov=qtpy --cov-report=term-missing::' pytest.ini || die # Disable Qt for Python implementations that are not selected if ! use pyqt5; then - sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die + sed -i -e '/from PyQt5.QtCore import/,/)/c\ \ \ \ \ \ \ \ raise ImportError #/' qtpy/__init__.py || die fi if ! use pyqt6; then - sed -i -e "s/from PyQt6.QtCore import/raise ImportError #/" qtpy/__init__.py || die + sed -i -e '/from PyQt6.QtCore import/,/)/c\ \ \ \ \ \ \ \ raise ImportError #/' qtpy/__init__.py || die fi if ! use pyside2; then sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die |
