aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenctl/setup.py
blob: 1b6a98c10a0606357a3efbd76cb0babea9c91673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from distutils.core import setup, Extension
import sys

modules = [ 'xenctl.console_client', 'xenctl.utils' ]

# We need the 'tempfile' module from Python 2.3. We install this ourselves
# if the installed Python is older than 2.3.
major = sys.version_info[0]
minor = sys.version_info[1]
if major == 2 and minor < 3:
    modules.append('xenctl.tempfile')

setup(name = 'xenctl',
      version = '1.0',
      py_modules = modules,
      package_dir = { 'xenctl' : 'lib' },
      )