Best practices for data files in /usr/share

2013-09-21 Thread Andrey Rahmatullin
Hello. I'm packaging a new version of python-babel and as it now builds 2.x and 3.x packages I decided to move the locale data into /usr/share and package it separately. Currently the data is installed using 'package_data' setup() argument and accessed via os.path.dirname(__file__). I've added

Re: Best practices for data files in /usr/share

2013-09-21 Thread Jakub Wilk
On Sat, Sep 21, 2013 at 11:36:05PM +0600, Andrey Rahmatullin wrote: So, what are the best practices for moving data files out of the module directories? This is how we do it in Sphinx: 1) There's only one statement that uses __file__ (thanks, upstream!):