File: setup.py

package info (click to toggle)
soundconverter 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,388 kB
  • sloc: python: 5,362; xml: 181; sh: 38; makefile: 3
file content (59 lines) | stat: -rw-r--r-- 2,090 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/python3
#
# SoundConverter - GNOME application for converting between audio formats.
# Copyright 2004 Lars Wirzenius
# Copyright 2005-2025 Gautier Portet
# Copyright 2020-2025 Sezanzeb
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA

import sys

try:
    import DistUtilsExtra.auto
except ImportError as e:
    sys.stderr.write("You need python-distutils-extra\n")
    sys.stderr.write(e)
    sys.exit(1)

import os

import DistUtilsExtra.auto

# This will automatically, assuming that the prefix is /usr
# - Compile and install po files to /usr/share/locale*.mo,
# - Install .desktop files to /usr/share/applications
# - Install all the py files to /usr/lib/python3.8/site-packages/soundconverter
# - Copy bin to /usr/bin
# - Copy the rest to /usr/share/soundconverter, like the .glade file
# Thanks to DistUtilsExtra (https://salsa.debian.org/python-team/modules/python-distutils-extra/-/tree/master/doc) # noqa


DistUtilsExtra.auto.setup(
    name="soundconverter",
    version="4.1.3",
    description=(
        "A simple sound converter application for the GNOME environment. "
        "It writes WAV, FLAC, MP3, Opus, WMA and Ogg Vorbis files."
    ),
    license="GPL-3.0",
    data_files=[
        ("share/metainfo/", ["data/soundconverter.appdata.xml"]),
        ("share/pixmaps/", ["data/soundconverter.png"]),
        ("share/icons/hicolor/scalable/apps/", ["data/soundconverter.svg"]),
    ],
    scripts=["bin/soundconverter"],
    python_requires=">=3.11",
)