]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tweaks to build process to support py2exe
authorrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 10 Jan 2008 02:02:53 +0000 (19:02 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 10 Jan 2008 02:02:53 +0000 (19:02 -0700)
py2exe is unable to handle .eggs which are packaged as zip files
in preference it will pull in other versions of libraries if they
can be found in the environment.

this changes causes .eggs to be built as .egg directories, which
py2exe can handle.

Makefile
misc/dependencies/build-deps-setup.py [deleted file]
misc/dependencies/setup.py [new file with mode: 0644]

index 5bf40467b5abf791012949234020fe5dcca122a8..438d006cf322bda14b0f40fc6248e0ea656f2992 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,8 +50,7 @@ build-auto-deps: check-deps
        echo PYTHONPATH="$(PYTHONPATH)$(PATHSEP)$(SUPPORTLIB)$(PATHSEP)" $(PYTHON) misc/dependencies/build-deps-setup.py install --prefix="$(SUPPORT)"
        @-PYTHONPATH="$(PYTHONPATH)$(PATHSEP)$(SUPPORTLIB)$(PATHSEP)" \
          $(PYTHON) misc/dependencies/build-deps-setup.py install \
-        --prefix="$(SUPPORT)" || \
-       echo "Build of Tahoe's bundled, automatically built dependent libraries failed -- please see docs/install.html for instructions."
+        --prefix="$(SUPPORT)"
 
 # The following target is here because I don't know how to tell the buildmaster
 # to start instructing his slaves to "build-auto-deps" instead of instructing
diff --git a/misc/dependencies/build-deps-setup.py b/misc/dependencies/build-deps-setup.py
deleted file mode 100644 (file)
index cd09b02..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /usr/bin/env python
-
-# N.B.: this expects to run from the top of the source tree
-
-import sys, os
-
-miscdeps=os.path.join('misc', 'dependencies')
-
-try:
-    from ez_setup import use_setuptools
-except ImportError:
-    pass
-else:
-    if 'cygwin' in sys.platform.lower():
-        min_version='0.6c6'
-    else:
-        # foolscap uses a module-level os.urandom() during import, which
-        # breaks inside older setuptools' sandboxing. 0.6c4 is the first
-        # version which fixed this problem.
-        min_version='0.6c4'
-    download_base = "file:"+os.path.join('misc', 'dependencies')+os.path.sep
-    use_setuptools(min_version=min_version,
-                   download_base=download_base,
-                   download_delay=0, to_dir=miscdeps)
-
-from setuptools import setup
-
-from calcdeps import install_requires, dependency_links
-
-setup(name='tahoe-deps',
-      version="1",
-      install_requires=install_requires,
-      dependency_links=dependency_links,
-      zip_safe=False
-      )
diff --git a/misc/dependencies/setup.py b/misc/dependencies/setup.py
new file mode 100644 (file)
index 0000000..cd09b02
--- /dev/null
@@ -0,0 +1,35 @@
+#! /usr/bin/env python
+
+# N.B.: this expects to run from the top of the source tree
+
+import sys, os
+
+miscdeps=os.path.join('misc', 'dependencies')
+
+try:
+    from ez_setup import use_setuptools
+except ImportError:
+    pass
+else:
+    if 'cygwin' in sys.platform.lower():
+        min_version='0.6c6'
+    else:
+        # foolscap uses a module-level os.urandom() during import, which
+        # breaks inside older setuptools' sandboxing. 0.6c4 is the first
+        # version which fixed this problem.
+        min_version='0.6c4'
+    download_base = "file:"+os.path.join('misc', 'dependencies')+os.path.sep
+    use_setuptools(min_version=min_version,
+                   download_base=download_base,
+                   download_delay=0, to_dir=miscdeps)
+
+from setuptools import setup
+
+from calcdeps import install_requires, dependency_links
+
+setup(name='tahoe-deps',
+      version="1",
+      install_requires=install_requires,
+      dependency_links=dependency_links,
+      zip_safe=False
+      )