[tor-commits] [tor-browser-bundle/master] Build zope.interface for windows.

mikeperry at torproject.org mikeperry at torproject.org
Tue Jan 21 04:47:04 UTC 2014


commit 64c59b9279011f5263e4935d4f814ad37350217f
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Nov 18 05:21:31 2013 +0000

    Build zope.interface for windows.
    
    The step of creating zope/__init__.py is needed so that py2exe can find
    the package.
    
    This need was previous discovered:
    https://gitweb.torproject.org/pluggable-transports/bundle.git/commitdiff/4482c5f5ad63b320e6208547a091f47005394ec9
    then removed because easy_install made it unnecessary:
    https://gitweb.torproject.org/pluggable-transports/bundle.git/commitdiff/64044647bf5412e5aa3a930a577e1dbb8cd91276
    Now we need it back because we're not using easy_install.
---
 gitian/descriptors/windows/gitian-pluggable-transports.yml |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gitian/descriptors/windows/gitian-pluggable-transports.yml b/gitian/descriptors/windows/gitian-pluggable-transports.yml
index 07c36fc..89cd34a 100644
--- a/gitian/descriptors/windows/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/windows/gitian-pluggable-transports.yml
@@ -6,6 +6,7 @@ architectures:
 - "i386"
 packages: 
 - "git-core"
+- "unzip"
 - "zip"
 - "p7zip-full"
 - "mingw-w64"
@@ -20,6 +21,7 @@ remotes:
 files:
 - "setuptools.tar.gz"
 - "pycrypto.tar.gz"
+- "zope.interface.zip"
 - "ubuntu-wine.gpg"
 - "wine-wrappers"
 - "python.msi"
@@ -104,6 +106,15 @@ script: |
   LD_PRELOAD= $INSTPYTHON setup.py install
   cd ..
   #
+  unzip zope.interface.zip
+  cd zope.interface-*
+  find -type f | xargs touch --date="$REFERENCE_DATETIME"
+  LD_PRELOAD= $INSTPYTHON setup.py build_ext -c mingw32
+  LD_PRELOAD= $INSTPYTHON setup.py install --single-version-externally-managed --record /dev/null
+  # Must create this file in order for py2exe to find the package.
+  touch $INSTDIR/python/Lib/site-packages/zope/__init__.py
+  cd ..
+  #
   cd openssl
   find -type f | xargs touch --date="$REFERENCE_DATETIME"
   ./Configure -shared --cross-compile-prefix=i686-w64-mingw32- mingw --prefix=$INSTDIR/openssl





More information about the tor-commits mailing list