Skip to content
This repository was archived by the owner on Nov 13, 2022. It is now read-only.

Commit 31ee212

Browse files
committed
setup: drop data_files setting
Rational: pypa/pip#2874 (comment)
1 parent bbac873 commit 31ee212

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

archlinux/PKGBUILD

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ check() {
3838
package() {
3939
cd "$pkgname-$pkgver"
4040
python setup.py install --root="$pkgdir"
41+
install -vDm644 -t "${pkgdir}/usr/share/pixmaps" plover/assets/plover.png
42+
install -vDm644 -t "${pkgdir}/usr/share/applications" application/plover.desktop
4143
chmod og+rX -R "$pkgdir"
4244
}
4345

rpm/package.spec

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ env PYTHONPATH="$PWD/.deps" %{__python3} setup.py compile_catalog build_ui build
4646

4747
%install
4848
env PYTHONPATH="$PWD/.deps" %py3_install
49+
install -vDm644 -t "%{buildroot}/usr/share/pixmaps" plover/assets/plover.png
50+
install -vDm644 -t "%{buildroot}/usr/share/applications" application/plover.desktop
4951

5052
%check
5153
env PYTHONPATH="$PWD/.deps" %{__python3} setup.py test

setup.py

-4
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,4 @@ def run(self):
467467
options=options,
468468
cmdclass=cmdclass,
469469
extras_require=extras_require,
470-
data_files=[
471-
('share/applications', ['application/plover.desktop']),
472-
('share/pixmaps', ['plover/assets/plover.png']),
473-
],
474470
)

0 commit comments

Comments
 (0)