Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame^] | 1 | # Copyright (C) 2010 Google Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 14 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame^] | 15 | """Setup script for Google API Python client. |
| 16 | |
| 17 | Also installs included versions of third party libraries, if those libraries |
| 18 | are not already installed. |
| 19 | """ |
| 20 | |
| 21 | import setup_utils |
| 22 | |
| 23 | packages = ['apiclient', 'uritemplate'] |
| 24 | |
| 25 | # Don't clobber installed versions of third party libraries |
| 26 | # with what we include. |
| 27 | packages.extend(setup_utils.get_missing_requirements()) |
| 28 | print 'Installing the following packages: ' |
| 29 | print str(packages)[1:-1] |
| 30 | |
| 31 | try: |
| 32 | # Some people prefer setuptools, and may have that installed |
| 33 | from setuptools import setup |
| 34 | except ImportError: |
| 35 | from distutils.core import setup |
| 36 | print 'Loaded distutils.core' |
| 37 | else: |
| 38 | print 'Loaded setuptools' |
| 39 | |
| 40 | long_desc = """The Google API Client for Python is a client library for |
| 41 | accessing the Buzz, Moderator, and Latitude APIs.""" |
| 42 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 43 | setup(name="google-api-python-client", |
| 44 | version="0.1", |
| 45 | description="Google API Client Library for Python", |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame^] | 46 | long_description=long_desc, |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 47 | author="Joe Gregorio", |
| 48 | author_email="jcgregorio@google.com", |
| 49 | url="http://code.google.com/p/google-api-python-client/", |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame^] | 50 | packages=packages, |
| 51 | package_data={'apiclient':['contrib/buzz/future.json', |
| 52 | 'contrib/latitude/future.json', |
| 53 | 'contrib/moderator/future.json']}, |
| 54 | license="Apache 2.0", |
| 55 | keywords="google api client", |
| 56 | classifiers=['Development Status :: 3 - Alpha', |
| 57 | 'Intended Audience :: Developers', |
| 58 | 'License :: OSI Approved :: Apache Software License', |
| 59 | 'Operating System :: POSIX', |
| 60 | 'Topic :: Internet :: WWW/HTTP']) |
| 61 | |
| 62 | print 'Setup complete!' |