Commit 83d36352 authored by André's avatar André

Update setup.py and .gitignore

parent 372c1f99
...@@ -12,12 +12,16 @@ data/org.gajim.Gajim.appdata.xml ...@@ -12,12 +12,16 @@ data/org.gajim.Gajim.appdata.xml
data/org.gajim.Gajim.desktop data/org.gajim.Gajim.desktop
libtool libtool
po/.intltool-merge-cache po/.intltool-merge-cache
data/gajim-remote.desktop
po/gajim.pot po/gajim.pot
po/POTFILES po/POTFILES
po/stamp-it po/stamp-it
stamp-h1 stamp-h1
Makefile Makefile
__pycache__/ __pycache__/
build/
dist/
gajim.egg-info/
src/gtk/ src/gtk/
win/_build_root win/_build_root
......
...@@ -56,7 +56,7 @@ def build_trans(build_cmd): ...@@ -56,7 +56,7 @@ def build_trans(build_cmd):
data_files = build_cmd.distribution.data_files data_files = build_cmd.distribution.data_files
for lang in ALL_LINGUAS: for lang in ALL_LINGUAS:
po_file = os.path.join('po', lang + '.po') po_file = os.path.join('po', lang + '.po')
mo_file = os.path.join(cwd, 'mo', lang, 'LC_MESSAGES', 'gajim.mo') mo_file = os.path.join(cwd, 'build', 'mo', lang, 'LC_MESSAGES', 'gajim.mo')
mo_dir = os.path.dirname(mo_file) mo_dir = os.path.dirname(mo_file)
if not (os.path.isdir(mo_dir) or os.path.islink(mo_dir)): if not (os.path.isdir(mo_dir) or os.path.islink(mo_dir)):
os.makedirs(mo_dir) os.makedirs(mo_dir)
...@@ -84,7 +84,7 @@ def build_man(build_cmd): ...@@ -84,7 +84,7 @@ def build_man(build_cmd):
data_files = build_cmd.distribution.data_files data_files = build_cmd.distribution.data_files
for man in ['gajim.1', 'gajim-history-manager.1', 'gajim-remote.1']: for man in ['gajim.1', 'gajim-history-manager.1', 'gajim-remote.1']:
filename = os.path.join('data', man) filename = os.path.join('data', man)
newdir = os.path.join(cwd, 'man') newdir = os.path.join(cwd, 'build', 'man')
if not (os.path.isdir(newdir) or os.path.islink(newdir)): if not (os.path.isdir(newdir) or os.path.islink(newdir)):
os.makedirs(newdir) os.makedirs(newdir)
...@@ -103,9 +103,8 @@ def build_man(build_cmd): ...@@ -103,9 +103,8 @@ def build_man(build_cmd):
f_out.writelines(f_in) f_out.writelines(f_in)
log.info('Compiling %s >> %s', filename, man_file_gz) log.info('Compiling %s >> %s', filename, man_file_gz)
src = cwd + '/man' + '/' + man + '.gz'
target = 'share/man/man1' target = 'share/man/man1'
data_files.append((target, [src])) data_files.append((target, [man_file_gz]))
def build_intl(build_cmd): def build_intl(build_cmd):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment