Opened 14 years ago

Closed 9 years ago

Last modified 6 years ago

#1389 closed bug (Fixed)

"setup.py install" puts icons and .desktop file into wrong place under Ubuntu 10.10

Reported by: Zarbis Owned by:
Priority: trivial Milestone: 2.0.0
Component: Packaging Version:
Keywords: Cc: deluge@martinspacek.mm.st

Description

After making "python setup.py build && sudo python setup.py install" deluge has no icon and entry in applications menu. All icon and .desktop files are placed to /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6-linux-x86_64.egg/share/ which seems to be wrong.

Change History (14)

comment:1 by Calum, 14 years ago

Resolution: wontfix
Status: newclosed

Building from source is not designed for specific distros, that is what the Deluge Ubuntu PPA is for.

comment:2 by Zarbis, 14 years ago

Resolution: wontfix
Status: closedreopened

I was following deluge's development since around r3300 and now you tell me that i either should stop or change distro to continue? And to add custom translations i now should manually replace files that are under control of package manager?

comment:3 by Damien Churchill, 14 years ago

I agree, I was going to re-open this once I got home, which now I am. git-bisect to the rescue me thinks, see if this was something recently introduced.

Zarbis, are you using master or 1.3-stable?

comment:4 by mspacek, 14 years ago

I've noticed this as well. I just tried building from master today (2010-12-12) in amd64 Ubuntu maverick 10.10. Missing icon in Applications menu, and "sys-tray" status icon was showing up as missing as well.

My /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6-linux-x86_64.egg/share has this in it:

applications/ icons/ man/ pixmaps/

Copying (merging) these with nautilus into /usr/share did the trick for me.

comment:5 by mspacek, 14 years ago

Cc: deluge@martinspacek.mm.st added

comment:6 by Calum, 13 years ago

Component: otherpackaging
Priority: majortrivial
Type: defectbug

comment:7 by Calum, 13 years ago

Milestone: Future1.3.x

comment:8 by Calum, 13 years ago

I think that missing man pages can be added to this list

comment:9 by Calum, 13 years ago

Milestone: 1.3.x1.4.0
Version: 1.3.0_devgit master

comment:10 by Calum, 13 years ago

Resolution: invalid
Status: reopenedclosed

This has to do with Ubuntu's default installation path so you need to add an argument to the install command:

python setup.py install --install-layout=deb

More info: https://lists.ubuntu.com/archives/ubuntu-devel/2009-February/027439.html

I will add update wiki with this detail.

comment:11 by Calum, 13 years ago

Milestone: 1.4.01.3.x
Resolution: invalid
Status: closedreopened
Version: git master

Reopening as my previous comment doesn't actually do what I thought.

Turns out that install is putting those files into the package and not as expected in the system dirs. This originated after removing the custom install class from setup.py.

The workaround for now is to run the following after install:

sudo python setup.py install_data

comment:12 by Calum, 10 years ago

Milestone: 1.3.xFuture

comment:13 by Calum, 9 years ago

Milestone: Future2.0
Resolution: Fixed
Status: reopenedclosed

Fixed in develop: [0466c7144c18c7a1bee]

comment:14 by Calum, 6 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.