From ff0326ff9a2fc24f712781e903150fee24d0a306 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 10 Oct 2008 16:34:09 -0500 Subject: [PATCH] Fix a sign bug in extrusion. Improve an error message. Make not zip-safe. --- setup.py | 4 ++-- src/python/tet.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 576c070..a707197 100644 --- a/setup.py +++ b/setup.py @@ -112,8 +112,8 @@ def main(): extra_compile_args=conf["CXXFLAGS"], extra_link_args=conf["LDFLAGS"], ), - ] - ) + ], + zip_safe=False) diff --git a/src/python/tet.py b/src/python/tet.py index 5eedb84..a3df03d 100644 --- a/src/python/tet.py +++ b/src/python/tet.py @@ -230,7 +230,7 @@ def _is_same_float(a, b, threshold=1e-10): a,b = b,a # now abs(a) <= abs(b) always - return abs(b) < threshold or abs(a-b)