Skip to content

Commit b389070

Browse files
committed
install translations only on package data
1 parent 0cb7822 commit b389070

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

setup.py

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@ def initialize_options(self):
5252
else:
5353
man_dir = 'share/man'
5454

55-
56-
data_files = [
57-
# man pages
58-
(os.path.join(man_dir, 'man1'), ['doc/bpython.1']),
59-
(os.path.join(man_dir, 'man5'), ['doc/bpython-config.5']),
60-
# desktop shorcut
61-
(os.path.join('share', 'applications'), ['data/bpython.desktop']),
62-
]
63-
# localization
64-
if using_translations:
65-
for lang in os.listdir(translations_dir):
66-
if fnmatch(lang, '??_??'):
67-
data_files.append((os.path.join('share', 'locale', lang, 'LC_MESSAGES'),
68-
['%s/%s/LC_MESSAGES/bpython.mo' %
69-
(translations_dir, lang)]))
70-
7155
cmdclass = dict(build_py=build_py,
7256
build = build)
7357
# localization options
@@ -89,7 +73,12 @@ def initialize_options(self):
8973
'pygments'
9074
],
9175
packages = ["bpython", "bpython.translations", "bpdb"],
92-
data_files = data_files,
76+
data_files = [
77+
# man pages
78+
(os.path.join(man_dir, 'man1'), ['doc/bpython.1']),
79+
(os.path.join(man_dir, 'man5'), ['doc/bpython-config.5']),
80+
# desktop shorcut
81+
(os.path.join('share', 'applications'), ['data/bpython.desktop'])],
9382
package_data = {'bpython': ['logo.png']},
9483
entry_points = {
9584
'console_scripts': [

0 commit comments

Comments
 (0)