-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (41 loc) · 1.3 KB
/
setup.py
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
#!/usr/bin/env python3
import sys
import distutils.util
from setuptools import setup, find_packages
# check Python's version
if sys.version_info < (3, 2):
sys.stderr.write('This module requires at least Python 3.2\n')
sys.exit(1)
# check linux platform
platform = distutils.util.get_platform()
if not platform.startswith('linux'):
sys.stderr.write("This module is not available on %s\n" % platform)
sys.exit(1)
classif = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: LGPLv2 License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
]
# Do setup
setup(
name='qemu-qmp',
version='0.0.1',
description='Python implementation of the Qemu Monitor Protocol (QMP)',
author='Fpemud',
author_email='[email protected]',
license='LGPLv2 License',
platforms='Linux',
classifiers=classif,
url='http://github.com/fpemud/python-qemu-qmp',
download_url='',
py_modules=['qmp'],
package_dir={'': 'python3'},
)