summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-12-13 19:50:31 +0000
committerChris McDonough <chrism@agendaless.com>2008-12-13 19:50:31 +0000
commit357b4023b9f4b1d2f3a9f51049abaa89f387321c (patch)
tree8a288e8f8e98063629c2a085f826776ffc15e565 /setup.py
parentc2fc28f7af8842d20321b44f9e1be76428d75c78 (diff)
downloadpyramid-357b4023b9f4b1d2f3a9f51049abaa89f387321c.tar.gz
pyramid-357b4023b9f4b1d2f3a9f51049abaa89f387321c.tar.bz2
pyramid-357b4023b9f4b1d2f3a9f51049abaa89f387321c.zip
Fix bug reported by jpenney when attempting to run tests under buildout-generated environment.
See also http://lists.repoze.org/pipermail/repoze-dev/2008-December/001038.html
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index a3cddf38e..c71bed030 100644
--- a/setup.py
+++ b/setup.py
@@ -22,8 +22,11 @@ use_setuptools()
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.txt')).read()
-CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+try:
+ README = open(os.path.join(here, 'README.txt')).read()
+ CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+except IOError:
+ README = CHANGES = ''
install_requires=[
'chameleon.core [lxml]',