From c8ccb297fa7f499dbf88abcf8f03148c587e14e5 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Fri, 21 Jan 2011 17:24:42 -0800 Subject: [PATCH] src/allmydata/_auto_deps.py: setuptools is still an install requirement even in frozen builds, because .tac files import pkg_resources. refs #585 --- src/allmydata/_auto_deps.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/allmydata/_auto_deps.py b/src/allmydata/_auto_deps.py index 5936c8ee..45a6f240 100644 --- a/src/allmydata/_auto_deps.py +++ b/src/allmydata/_auto_deps.py @@ -5,6 +5,10 @@ # always available, or the import is protected by try...except ImportError. install_requires = [ + # we require newer versions of setuptools (actually + # zetuptoolz) to build, but can handle older versions to run + "setuptools >= 0.6c6", + "zfec >= 1.1.0", # Feisty has simplejson 1.4 @@ -80,10 +84,11 @@ def require_more(): install_requires.append("pysqlite >= 2.0.5") package_imports.append(('pysqlite', 'pysqlite2.dbapi2')) + # Don't try to get the version number of setuptools in frozen builds, because + # that triggers 'site' processing that causes failures. Note that frozen + # builds still (unfortunately) import pkg_resources in .tac files, so the + # entry for setuptools in install_requires above isn't conditional. if not hasattr(sys, 'frozen'): - # we require newer versions of setuptools (actually - # zetuptoolz) to build, but can handle older versions to run - install_requires.append("setuptools >= 0.6c6") package_imports.append(('setuptools', 'setuptools')) require_more() -- 2.45.2