2008-10-30 20:02:05 +01:00
|
|
|
import sys
|
2008-10-16 00:02:57 +02:00
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
2008-10-30 20:02:05 +01:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
raise ImportError('Could not import setuptools: setuptools is required on Windows systems')
|
2008-10-16 00:02:57 +02:00
|
|
|
from distutils.core import setup
|
|
|
|
import os
|
|
|
|
|
2008-10-30 20:02:05 +01:00
|
|
|
|
2008-11-17 19:16:09 +01:00
|
|
|
version = '0.2.2'
|
2008-10-16 00:02:57 +02:00
|
|
|
|
|
|
|
doc_dir = os.path.join(os.path.dirname(__file__), 'docs')
|
|
|
|
index_filename = os.path.join(doc_dir, 'index.txt')
|
|
|
|
long_description = """\
|
2008-10-16 00:24:00 +02:00
|
|
|
The main website for pip is `pip.openplans.org
|
|
|
|
<http://pip.openplans.org>`_
|
2008-10-16 00:02:57 +02:00
|
|
|
|
|
|
|
"""
|
|
|
|
long_description = long_description + open(index_filename).read().split('split here', 1)[1]
|
|
|
|
|
2008-10-30 20:02:05 +01:00
|
|
|
if sys.platform == 'win32':
|
2008-11-04 08:11:40 +01:00
|
|
|
kw = dict(entry_points=dict(console_scripts=['pip=pip:main']))
|
2008-10-30 20:02:05 +01:00
|
|
|
else:
|
|
|
|
kw = dict(scripts=['scripts/pip'])
|
2008-10-16 00:02:57 +02:00
|
|
|
|
2008-10-16 00:24:00 +02:00
|
|
|
setup(name='pip',
|
2008-10-16 00:02:57 +02:00
|
|
|
version=version,
|
2008-10-16 00:24:00 +02:00
|
|
|
description="pip installs packages. Python packages. An easy_install replacement",
|
2008-10-16 00:02:57 +02:00
|
|
|
long_description=long_description,
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
#'Development Status :: 5 - Production/Stable',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Topic :: Software Development :: Build Tools',
|
|
|
|
],
|
|
|
|
keywords='easy_install distutils setuptools egg virtualenv',
|
|
|
|
author='The Open Planning Project',
|
|
|
|
author_email='python-virtualenv@groups.google.com',
|
2008-10-16 00:24:00 +02:00
|
|
|
url='http://pip.openplans.org',
|
2008-10-16 00:02:57 +02:00
|
|
|
license='MIT',
|
2008-10-16 00:24:00 +02:00
|
|
|
py_modules=['pip'],
|
2008-10-30 20:02:05 +01:00
|
|
|
**kw)
|
2008-10-16 00:02:57 +02:00
|
|
|
|