comparison setup.py @ 2640:f93619e16ea0

install (setup.py): don't use sys.prefix for locales
author Goffi <goffi@goffi.org>
date Sun, 08 Jul 2018 18:37:36 +0200
parents 534b264d63df
children e7bfbded652a
comparison
equal deleted inserted replaced
2639:266f871fcb4b 2640:f93619e16ea0
18 # You should have received a copy of the GNU Affero General Public License 18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 20
21 from setuptools import setup, find_packages 21 from setuptools import setup, find_packages
22 import os 22 import os
23 import sys
24 23
25 NAME = 'sat' 24 NAME = 'sat'
26 25
27 install_requires = [ 26 install_requires = [
28 'babel', 27 'babel',
90 'License :: OSI Approved :: GNU Affero General Public License v3 ' 89 'License :: OSI Approved :: GNU Affero General Public License v3 '
91 'or later (AGPLv3+)', 90 'or later (AGPLv3+)',
92 'Operating System :: POSIX :: Linux', 91 'Operating System :: POSIX :: Linux',
93 'Topic :: Communications :: Chat'], 92 'Topic :: Communications :: Chat'],
94 packages=find_packages() + ['twisted.plugins'], 93 packages=find_packages() + ['twisted.plugins'],
95 data_files=[(os.path.join(sys.prefix, 'share/locale/fr/LC_MESSAGES'), 94 data_files=[('share/locale/fr/LC_MESSAGES',
96 ['i18n/fr/LC_MESSAGES/sat.mo']), 95 ['i18n/fr/LC_MESSAGES/sat.mo']),
97 (os.path.join('share/doc', NAME), 96 (os.path.join('share/doc', NAME),
98 ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']), 97 ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
99 (os.path.join('share', DBUS_DIR), [DBUS_FILE]), 98 (os.path.join('share', DBUS_DIR), [DBUS_FILE]),
100 ], 99 ],