Opened 7 years ago

Closed 2 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
Component: Packaging Version:
Keywords: Cc: deluge@…

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 (13)

comment:1 Changed 7 years ago by Cas

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:2 Changed 7 years ago by Zarbis

  • Resolution wontfix deleted
  • Status changed from closed to reopened

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 Changed 7 years ago by damoxc

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 Changed 7 years ago by mspacek

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 Changed 7 years ago by mspacek

  • Cc deluge@… added

comment:6 Changed 7 years ago by Cas

  • Component changed from other to packaging
  • Priority changed from major to trivial
  • Type changed from defect to bug

comment:7 Changed 7 years ago by Cas

  • Milestone changed from Future to 1.3.x

comment:8 Changed 7 years ago by Cas

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

comment:9 Changed 6 years ago by Cas

  • Milestone changed from 1.3.x to 1.4.0
  • Version changed from 1.3.0_dev to git master

comment:10 Changed 6 years ago by Cas

  • Resolution set to invalid
  • Status changed from reopened to closed

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 Changed 6 years ago by Cas

  • Milestone changed from 1.4.0 to 1.3.x
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Version git master deleted

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 Changed 3 years ago by Cas

  • Milestone changed from 1.3.x to Future

comment:13 Changed 2 years ago by Cas

  • Milestone changed from Future to 2.0
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed in develop: [0466c7144c18c7a1bee]

Note: See TracTickets for help on using tickets.