From 8c49a759889893cd452f2822f075ca2fe3e43bf5 Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Wed, 17 Jun 2009 23:32:01 +0530
Subject: [PATCH] setup: require setuptools >= 0.6c9 on Windows, but >= 0.6c6
 on other platforms

Ignore-this: d7b4ee5dd9aa45b7381224e5904d7266
Hopefully this will allow stdeb to work on all Debian derived platforms while also working around that problem that showed itself on Windows with setuptools 0.6c7.

darcs-hash:1b7c0693b82f9c192dc591f35fa6a26c3ae1ea43
---
 zfec/setup.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/zfec/setup.py b/zfec/setup.py
index a2f64b3..938ca2a 100755
--- a/zfec/setup.py
+++ b/zfec/setup.py
@@ -18,7 +18,16 @@ try:
 except ImportError:
     pass
 else:
-    use_setuptools(min_version='0.6c9', download_delay=0, to_dir=miscdeps)
+    if sys.platform.lower().startswith('win'):
+        # 0.6c7 on Windows had a problem with multiple overlapping dependencies
+        # on pyutil -- it would end up with the 'pyutil' key set in sys.modules
+        # but the actual code (and the temporary directory in the filesystem in
+        # which the code used to reside) gone, when it needed pyutil again
+        # later.
+        min_version='0.6c9'
+    else:
+        min_version='0.6c6'
+    use_setuptools(min_version=min_version, download_delay=0, to_dir=miscdeps)
 
 from setuptools import Extension, find_packages, setup
 
-- 
2.45.2