summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-09-22 17:13:45 -0400
committerChris McDonough <chrism@plope.com>2011-09-22 17:13:45 -0400
commite6c2d2eb7a9608658823fc2854104c2a61284942 (patch)
tree4ce76f4468b18280125a5e3bca15be3dce849214 /setup.py
parent03ce311ef998239bb76c04baa3cdbe76cc3b3fcf (diff)
downloadpyramid-e6c2d2eb7a9608658823fc2854104c2a61284942.tar.gz
pyramid-e6c2d2eb7a9608658823fc2854104c2a61284942.tar.bz2
pyramid-e6c2d2eb7a9608658823fc2854104c2a61284942.zip
anger release commit
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py36
1 files changed, 22 insertions, 14 deletions
diff --git a/setup.py b/setup.py
index b3e5deea2..4213bb628 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,9 @@ import sys
from setuptools import setup, find_packages
+PY3 = sys.version_info[0] == 3
+JYTHON = platform.system() != 'Java'
+
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
@@ -28,9 +31,6 @@ except IOError:
install_requires=[
'Chameleon >= 1.2.3',
'Mako >= 0.3.6', # strict_undefined
- 'Paste > 1.7', # temp version pin to prevent PyPi install failure :-(
- 'PasteDeploy',
- 'PasteScript >= 1.7.4', # "here" in logging fileConfig
'WebOb >= 1.0.2', # no "default_charset"; request.script_name doesnt error
'repoze.lru',
'setuptools',
@@ -40,21 +40,29 @@ install_requires=[
'translationstring',
]
-if platform.system() == 'Java':
- tests_require = install_requires + [
- 'WebTest',
- 'virtualenv',
- 'zope.component>=3.11.0',
- ]
-else:
- tests_require= install_requires + [
+if not PY3:
+ install_requires.extend([
+ 'Paste > 1.7', # temp version pin to prevent PyPi install failure :-(
+ 'PasteDeploy',
+ 'PasteScript >= 1.7.4', # "here" in logging fileConfig
+ ])
+
+tests_require = install_requires + [
+ 'WebTest',
+ 'virtualenv',
+ ]
+
+if not JYTHON:
+ tests_require.extend([
'Sphinx',
'docutils',
'repoze.sphinx.autointerface',
- 'WebTest',
- 'virtualenv',
+ ])
+
+if not PY3:
+ tests_require.extend([
'zope.component>=3.11.0',
- ]
+ ])
if sys.version_info[:2] < (2, 6):
install_requires.append('simplejson')