Chuck Short 93c1755acd Added condition requirement to simplejson
simplejson is a part of python 2.6.

Change-Id: I3a1d776918c8707f21532fe3b043a039b72d6704
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-04-30 11:21:12 -04:00

46 lines
1.4 KiB
Python

import os
import sys
import setuptools
from glanceclient.openstack.common.setup import parse_requirements
from glanceclient.openstack.common.setup import parse_dependency_links
from glanceclient.openstack.common.setup import write_git_changelog
requires = parse_requirements()
dependency_links = parse_dependency_links()
write_git_changelog()
if sys.version_info < (2, 6):
requires.append('simplejson')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name="python-glanceclient",
version="2012.2",
description="Client library for OpenStack Image API",
long_description=read('README.rst'),
url='https://github.com/openstack/python-glanceclient',
license='Apache',
author='OpenStack Glance Contributors',
author_email='glance@example.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=dependency_links,
test_suite="nose.collector",
entry_points={'console_scripts': ['glance = glanceclient.shell:main']},
)