Skip to content

Commit

Permalink
Updated setup.py to be less of a PEP8 violation.
Browse files Browse the repository at this point in the history
I know I know, I'm a hobgoblin.
  • Loading branch information
jezdez committed Jun 22, 2012
1 parent d999234 commit 7887071
Showing 1 changed file with 37 additions and 33 deletions.
70 changes: 37 additions & 33 deletions setup.py
@@ -1,26 +1,30 @@
import sys, os, shutil
import os
import shutil
import sys

try:
from setuptools import setup
entry_points = """
[console_scripts]
virtualenv = virtualenv:main
virtualenv-%s.%s = virtualenv:main
""" % sys.version_info[:2]
kw = {'entry_points': entry_points.strip(),
'zip_safe': False,
'test_suite': 'nose.collector',
'tests_require': ['nose', 'Mock'],
}
setup_params = {
'entry_points': {
'console_scripts': [
'virtualenv=virtualenv:main',
'virtualenv-%s.%s=virtualenv:main' % sys.version_info[:2]
],
},
'zip_safe': False,
'test_suite': 'nose.collector',
'tests_require': ['nose', 'Mock'],
}
except ImportError:
from distutils.core import setup
if sys.platform == 'win32':
print('Note: without Setuptools installed you will have to use "python -m virtualenv ENV"')
kw = {}
setup_params = {}
else:
script = 'scripts/virtualenv'
script_ver = script + '-%s.%s' % sys.version_info[:2]
shutil.copy(script, script_ver)
kw = {'scripts': [script, script_ver]}
setup_params = {'scripts': [script, script_ver]}

here = os.path.dirname(os.path.abspath(__file__))

Expand All @@ -43,13 +47,14 @@
except ImportError:
pass

setup(name='virtualenv',
# If you change the version here, change it in virtualenv.py and
# docs/conf.py as well
version="1.7.1.2.post1",
description="Virtual Python Environment builder",
long_description=long_description,
classifiers=[
setup(
name='virtualenv',
# If you change the version here, change it in virtualenv.py and
# docs/conf.py as well
version="1.7.1.2.post1",
description="Virtual Python Environment builder",
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
Expand All @@ -61,16 +66,15 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
],
keywords='setuptools deployment installation distutils',
author='Ian Bicking',
author_email='ianb@colorstudy.com',
maintainer='Jannis Leidel, Carl Meyer and Brian Rosner',
maintainer_email='python-virtualenv@groups.google.com',
url='http://www.virtualenv.org',
license='MIT',
py_modules=['virtualenv'],
packages=['virtualenv_support'],
package_data={'virtualenv_support': ['*-py%s.egg' % sys.version[:3], '*.tar.gz']},
**kw
)
],
keywords='setuptools deployment installation distutils',
author='Ian Bicking',
author_email='ianb@colorstudy.com',
maintainer='Jannis Leidel, Carl Meyer and Brian Rosner',
maintainer_email='python-virtualenv@groups.google.com',
url='http://www.virtualenv.org',
license='MIT',
py_modules=['virtualenv'],
packages=['virtualenv_support'],
package_data={'virtualenv_support': ['*-py%s.egg' % sys.version[:3], '*.tar.gz']},
**setup_params)

0 comments on commit 7887071

Please sign in to comment.