File: setup.py

package info (click to toggle)
drpython 1%3A3.11.4-1.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 3,868 kB
  • ctags: 2,871
  • sloc: python: 16,653; makefile: 141; sh: 1
file content (114 lines) | stat: -rw-r--r-- 3,769 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#   Distributed under the terms of the GPL (GNU Public License)
#
#   DrPython 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; either version 2 of the License, or
#   (at your option) any later version.
#
#   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

#setup.py

# DrPython installation script
# Copyright (c) 2004 Radoslaw Stachowiak <radek@gentoo.org>
# Last modification: 2004-10-12
#
#######################################
#
# Version 0.9.2:  Classifiers and post installation added by Christoph.
#
# Version 0.9.1:  The full modified version by Christoph.
# (Plus minor comment changes by Dan).
#
# (Daniel Pozmanter, 0.9.0:  Added Christoph's Patch.
#
# (Daniel Pozmanter:  0.8.1:  Modified version number.)
#
#######################################
#

"""\
DrPython - a highly customizable cross-platform Python IDE

DrPython is a highly customizable, cross-platform, extensible editor and
environment for developing programs written in the Python programming
language. It is implemented in wxPython (a set of Python bindings and
extra widgets for wxWidgets) and uses its Scintilla based editor component.

You can get the latest Python version from http://www.python.org.

You can get the latest wxPython version from http://www.wxpython.org."""

from drpython import DRPY_VER

# version (should be imported from drpython.py or __init__.py)
MY_VER = DRPY_VER

# package name, do not change
MY_NAME = "drpython"

AUTHOR = "Daniel Pozmanter"
AUTHOR_EMAIL = "drpython@bluebottle.com"
URL = "http://drpython.sourceforge.net"

# Trove classification (get list with python setup.py register --list-classifiers)
classifiers = """
Development Status :: 5 - Production/Stable
Environment :: MacOS X
Environment :: Win32 (MS Windows)
Environment :: X11 Applications :: GTK
Intended Audience :: Developers
Intended Audience :: Education
Intended Audience :: Information Technology
Intended Audience :: Other Audience
Intended Audience :: Science/Research
Intended Audience :: System Administrators
OSI Approved :: GNU General Public License (GPL)
Natural Language :: English
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX :: Linux
Programming Language :: Python
Topic :: Documentation
Topic :: Software Development
Topic :: Text Editors
Topic :: Text Editors :: Integrated Development Environments (IDE)
"""

# take name and description from setup.py docstring
description = __doc__.split('\n\n', 1)
name = description[0].split(" ", 1)[0]

# please add every package data file to be installed to the list
DATA = [
    "documentation/*",
    "examples/DrScript/*",
    "bitmaps/*.ico", "bitmaps/*.png",
    "bitmaps/16/*.png", "bitmaps/24/*.png",
    # adding runner scripts, TODO: drpython startup should be probably redone
]

from distutils.core import setup

# and now standard distutils installation routine
setup(name=name,
    version=MY_VER,
    description=description[0],
    long_description=description[1],
    classifiers = filter(None, classifiers.split('\n')),
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url=URL,
    platforms = "any",
    license = "GPL",
    packages=[ MY_NAME ],
    package_dir={ MY_NAME : '.' },
    package_data={ MY_NAME : DATA },
)