Installer puts $installdir/share stuff in wrong place #5

Closed
quite opened this Issue Dec 28, 2011 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

quite commented Dec 28, 2011

After clean install of sonata from source, using:

python2 ./setup.py install --prefix=/usr/local

Files and dirs which should go in /usr/local/share/ end up in

/usr/local/lib/python2.7/site-packages/Sonata-1.6.2.1-py2.7-linux-i686.egg/
sonata/share/{locale,man,pixmaps,foo}

multani closed this in 0df7981 Jan 1, 2012

multani reopened this Jan 1, 2012

Owner

multani commented Jan 1, 2012

Can you try the fix-issue-5 branch and tell me what do you think?

Most of the data are now out of the egg directory (locale, man, doc), except the pixmaps, which are considered "part of the application". Translations should be working again by the way (I guess it was broken since everything was into the egg directory).

Contributor

quite commented Jan 1, 2012

stat64("/usr/local/share/pixmaps/sonata.png", 0xbf87526c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/pixmaps/sonata.png", 0xbf87526c) = -1 ENOENT (No such file or directory)
write(2, "[2012-01-01 16:58:11] sonata.mai"..., 77[2012-01-01 16:58:11] sonata.main: 'sonata.png' cannot be found. Aborting...

Because it is here:
/usr/local/lib/python2.7/site-packages/sonata/pixmaps/sonata.png

Owner

multani commented Jan 2, 2012

Hum, the file is actually at the right place, and I changed the code so it doesn't look anymore at all those places...

Can you have a look at sonata/main.py path_to_icon() method (line 3451) and tell me the call result of pkg_resources.resource_filename()?

Edit: and also __name__ and __name__.__file__, thanks!

Contributor

quite commented Jan 2, 2012

Hm, yes it works now. Possibly my bad...

quite closed this Jan 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment