~ubuntu-branches/ubuntu/utopic/pyserial/utopic

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-06-24 19:14:57 UTC
  • mfrom: (3.1.4 lenny)
  • Revision ID: james.westby@ubuntu.com-20080624191457-l7snsahtf9ngtuti
Tags: 2.3-1
* New upstream version.
* Update watch file. Closes: #450106.
* Mention the upstream name in the package description. Closes: #459590.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# setup.py
2
 
from distutils.core import setup
3
 
import sys
4
 
 
5
 
#windows installer:
6
 
# python setup.py bdist_wininst
7
 
 
8
 
# patch distutils if it can't cope with the "classifiers" or
9
 
# "download_url" keywords
10
 
if sys.version < '2.2.3':
11
 
    from distutils.dist import DistributionMetadata
12
 
    DistributionMetadata.classifiers = None
13
 
    DistributionMetadata.download_url = None
14
 
 
15
 
setup(
16
 
    name="pyserial",
17
 
    description="Python Serial Port Extension",
18
 
    version="2.2",
19
 
    author="Chris Liechti",
20
 
    author_email="cliechti@gmx.net",
21
 
    url="http://pyserial.sourceforge.net/",
22
 
    packages=['serial'],
23
 
    license="Python",
24
 
    long_description="Python Serial Port Extension for Win32, Linux, BSD, Jython",
25
 
    classifiers = [
26
 
        'Development Status :: 5 - Production/Stable',
27
 
        'Intended Audience :: Developers',
28
 
        'Intended Audience :: End Users/Desktop',
29
 
        'License :: OSI Approved :: Python Software Foundation License',
30
 
        'Natural Language :: English',
31
 
        'Operating System :: POSIX',
32
 
        'Operating System :: Microsoft :: Windows',
33
 
        'Programming Language :: Python',
34
 
        'Topic :: Communications',
35
 
        'Topic :: Software Development :: Libraries',
36
 
        'Topic :: Terminals :: Serial',
37
 
    ],
38
 
)
 
1
# setup.py
 
2
try:
 
3
    from setuptools import setup
 
4
except ImportError:
 
5
    print "standart distutils"
 
6
    from distutils.core import setup
 
7
else:
 
8
    print "setuptools"
 
9
import sys
 
10
 
 
11
#windows installer:
 
12
# python setup.py bdist_wininst
 
13
 
 
14
# patch distutils if it can't cope with the "classifiers" or
 
15
# "download_url" keywords
 
16
if sys.version < '2.2.3':
 
17
    from distutils.dist import DistributionMetadata
 
18
    DistributionMetadata.classifiers = None
 
19
    DistributionMetadata.download_url = None
 
20
 
 
21
setup(
 
22
    name="pyserial",
 
23
    description="Python Serial Port Extension",
 
24
    version="2.3",
 
25
    author="Chris Liechti",
 
26
    author_email="cliechti@gmx.net",
 
27
    url="http://pyserial.sourceforge.net/",
 
28
    packages=['serial'],
 
29
    license="Python",
 
30
    long_description="Python Serial Port Extension for Win32, Linux, BSD, Jython",
 
31
    classifiers = [
 
32
        'Development Status :: 5 - Production/Stable',
 
33
        'Intended Audience :: Developers',
 
34
        'Intended Audience :: End Users/Desktop',
 
35
        'License :: OSI Approved :: Python Software Foundation License',
 
36
        'Natural Language :: English',
 
37
        'Operating System :: POSIX',
 
38
        'Operating System :: Microsoft :: Windows',
 
39
        'Programming Language :: Python',
 
40
        'Topic :: Communications',
 
41
        'Topic :: Software Development :: Libraries',
 
42
        'Topic :: Terminals :: Serial',
 
43
    ],
 
44
)