annotate setup.py @ 131:331546daef20

install (setup.py): don't force sys.prefix for locales
author Goffi <goffi@goffi.org>
date Sun, 08 Jul 2018 18:02:21 +0200
parents 406c310e52b5
children 86287fcbf638
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
42cb54666fc2 Added basic setup.py
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/usr/bin/env python
42cb54666fc2 Added basic setup.py
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
42cb54666fc2 Added basic setup.py
Goffi <goffi@goffi.org>
parents:
diff changeset
3
83
12b5b1435e17 updated old distribute_setup.py to new setuptools' ez_setup.py
Goffi <goffi@goffi.org>
parents: 72
diff changeset
4 from ez_setup import use_setuptools
130
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
5
39
8cc5970039f3 distribute is now used with distutils, added urwid requirement
Goffi <goffi@goffi.org>
parents: 38
diff changeset
6 use_setuptools()
8cc5970039f3 distribute is now used with distutils, added urwid requirement
Goffi <goffi@goffi.org>
parents: 38
diff changeset
7
8cc5970039f3 distribute is now used with distutils, added urwid requirement
Goffi <goffi@goffi.org>
parents: 38
diff changeset
8 from setuptools import setup
35
5a8e2200ddc0 using glob for setup.py
Goffi <goffi@goffi.org>
parents: 34
diff changeset
9 from glob import glob
31
42cb54666fc2 Added basic setup.py
Goffi <goffi@goffi.org>
parents:
diff changeset
10
130
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
11 name = "urwid_satext"
34
875ff127b2dd - i18n management: gettext integration + french translation
Goffi <goffi@goffi.org>
parents: 31
diff changeset
12
130
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
13 setup(
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
14 name=name,
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
15 version="0.7.0a1",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
16 description=u"SàT extension widgets for Urwid",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
17 long_description=(u"Urwid SàT extension widgets is a set of widgets for the console "
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
18 u"user interface library Urwid (http://excess.org/urwid/). This "
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
19 u"library, originaly made for the SàT project, was eventually "
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
20 u"separated so other softwares can use it. Widgets provided "
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
21 u"include password text box, tab container, dialogs, file chooser "
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
22 u"etc. Feel free to go to the project page for more informations."),
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
23 author="Goffi (Jérôme Poisson)",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
24 author_email="goffi@goffi.org",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
25 url="http://wiki.goffi.org/wiki/Urwid-satext",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
26 classifiers=[
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
27 "Environment :: Console",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
28 "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
29 "Intended Audience :: Developers",
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
30 ],
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
31 packages=["urwid_satext"],
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
32 data_files=[
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
33 (
131
331546daef20 install (setup.py): don't force sys.prefix for locales
Goffi <goffi@goffi.org>
parents: 130
diff changeset
34 "share/locale/fr/LC_MESSAGES",
130
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
35 ["i18n/fr/LC_MESSAGES/urwid_satext.mo"],
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
36 ),
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
37 ("share/doc/%s/examples" % name, glob("examples/*.py")),
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
38 ("share/doc/%s" % name, ["COPYING", "COPYING.LESSER", "README", "CHANGELOG"]),
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
39 ],
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
40 install_requires=["urwid >= 1.2.0"],
406c310e52b5 0.7.0a1 release
Goffi <goffi@goffi.org>
parents: 125
diff changeset
41 )