mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-04 11:27:49 +03:00
[Packaging] Cleanup dependencies
- Tweaked the layout a bit with optional part of dependency description. - Updated descriptions to help understand dependency usage. - Made intltool and chardet packages optional. This will help with installation where these might be missing and are not crucial. - Remove gettext from dependency as is part of Python.
This commit is contained in:
parent
9f9827ca58
commit
85bbdfe143
3 changed files with 25 additions and 29 deletions
5
setup.py
5
setup.py
|
@ -19,6 +19,7 @@ from distutils import cmd
|
|||
from distutils.command.build import build as _build
|
||||
from distutils.command.clean import clean as _clean
|
||||
from distutils.command.install_data import install_data as _install_data
|
||||
from distutils.spawn import find_executable
|
||||
from shutil import rmtree
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
@ -206,8 +207,8 @@ class BuildTranslations(cmd.Command):
|
|||
else:
|
||||
basedir = os.path.join(self.build_lib, 'deluge', 'i18n')
|
||||
|
||||
if not windows_check():
|
||||
intltool_merge = 'intltool-merge'
|
||||
intltool_merge = 'intltool-merge'
|
||||
if not windows_check() and find_executable(intltool_merge):
|
||||
intltool_merge_opts = '--utf8 --quiet'
|
||||
for data_file in (desktop_data, appdata_data):
|
||||
# creates the translated file from .in file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue