Trimage/setup.py
Linux 4255dd7b62 * Change jpegoptim to guetzli
* guetzli compresses JPGs MUCH better than jpegoptim, the output quality is near to the original image
* guetzli needs a lot of CPU and RAM resources to work, but it is compensated with much better reduce of the size of the image
* guetzli's git is here: https://github.com/google/guetzli; it is already in Debian's repos: https://packages.debian.org/search?keywords=guetzli&searchon=names&suite=all&section=all, it has also already been packaged for ALT Linux and Slackware: https://pkgs.org/download/guetzli
* Added Russian translations into the .desktop file
2017-07-09 12:48:01 +03:00

41 lines
1.6 KiB
Python

#!/usr/bin/env python
import sys
win=(sys.platform == "win32")
if win:
import py2exe
sys.path.append("src/trimage")
from distutils.core import setup
setup(name = "trimage",
version = "1.0.2",
description = "Trimage image compressor - A cross-platform tool for optimizing PNG and JPG files",
author = "Kilian Valkhof, Paul Chaplin",
author_email = "help@trimage.org",
url = "http://trimage.org",
license = "MIT license",
package_dir = {'trimage' : 'src/trimage'},
packages = ["trimage",
"trimage.filesize",
"trimage.ThreadPool",],
package_data = {"trimage" : ["pixmaps/*.*"] },
data_files=[('share/icons/hicolor/scalable/apps', ['desktop/trimage.svg']),
('share/applications', ['desktop/trimage.desktop']),
('share/man/man1', ['doc/trimage.1'])],
scripts = ["trimage"],
long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and guetzli, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""",
requires = ["PyQt4 (>=4.4)"],
#for py2exe
windows=[r'src\trimage\trimage.py'],
zipfile=None,
options={"py2exe":{
"optimize":2,
"compressed":1,
"bundle_files":1,
"includes":["sip",],
"excludes":['email'],
},
},
)