7
from setuptools import setup
11
'virtualenv=virtualenv:main',
12
'virtualenv-%s.%s=virtualenv:main' % sys.version_info[:2]
16
'test_suite': 'nose.collector',
17
'tests_require': ['nose', 'Mock'],
20
from distutils.core import setup
21
if sys.platform == 'win32':
22
print('Note: without Setuptools installed you will have to use "python -m virtualenv ENV"')
25
script = 'scripts/virtualenv'
26
script_ver = script + '-%s.%s' % sys.version_info[:2]
27
shutil.copy(script, script_ver)
28
setup_params = {'scripts': [script, script_ver]}
30
here = os.path.dirname(os.path.abspath(__file__))
32
## Get long_description from index.txt:
33
f = open(os.path.join(here, 'docs', 'index.txt'))
34
long_description = f.read().strip()
35
long_description = long_description.split('split here', 1)[1]
37
f = open(os.path.join(here, 'docs', 'news.txt'))
38
long_description += "\n\n" + f.read()
43
f = open(os.path.join(here, 'virtualenv.py'))
44
version_file = f.read()
46
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
49
return version_match.group(1)
50
raise RuntimeError("Unable to find version string.")
53
# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on
54
# exit of python setup.py test # in multiprocessing/util.py _exit_function when
55
# running python setup.py test (see
56
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
58
import multiprocessing
64
# If you change the version here, change it in virtualenv.py and
65
# docs/conf.py as well
66
version=get_version(),
67
description="Virtual Python Environment builder",
68
long_description=long_description,
70
'Development Status :: 4 - Beta',
71
'Intended Audience :: Developers',
72
'License :: OSI Approved :: MIT License',
73
'Programming Language :: Python :: 2',
74
'Programming Language :: Python :: 2.4',
75
'Programming Language :: Python :: 2.5',
76
'Programming Language :: Python :: 2.6',
77
'Programming Language :: Python :: 2.7',
78
'Programming Language :: Python :: 3',
79
'Programming Language :: Python :: 3.1',
80
'Programming Language :: Python :: 3.2',
82
keywords='setuptools deployment installation distutils',
84
author_email='ianb@colorstudy.com',
85
maintainer='Jannis Leidel, Carl Meyer and Brian Rosner',
86
maintainer_email='python-virtualenv@groups.google.com',
87
url='http://www.virtualenv.org',
89
py_modules=['virtualenv'],
90
packages=['virtualenv_support'],
91
package_data={'virtualenv_support': ['*-py%s.egg' % sys.version[:3], '*.tar.gz']},