From 357b4023b9f4b1d2f3a9f51049abaa89f387321c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 13 Dec 2008 19:50:31 +0000 Subject: 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 --- setup.py | 7 +++++-- 1 file 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]', -- cgit v1.2.3