File: setup.py

package info (click to toggle)
trimage 1.0.5-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 264 kB
  • ctags: 99
  • sloc: python: 830; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,592 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/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'])],
    scripts = ["trimage"],
    long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, 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'],
        },
    },
  )