Don't clone tahoe by tomprince · Pull Request #404 · gridsync/gridsync

Expand Up @@ -2,9 +2,16 @@
from __future__ import print_function
from distutils.sysconfig import get_python_lib import glob import os import sys from distutils.sysconfig import get_python_lib
from PyInstaller.utils.hooks import ( collect_data_files, get_package_paths, remove_prefix, )
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-remove-tkinter-tcl sys.modules['FixTk'] = None Expand All @@ -16,34 +23,47 @@ options = [ ('W ignore::UserWarning', None, 'OPTION') ]
added_files = [ ('COPYING.*', '.'), ('CREDITS', '.'), ('relnotes.txt', '.'), ('src/allmydata/web/*.xhtml', 'allmydata/web'), ('src/allmydata/web/static/*', 'allmydata/web/static'), ('src/allmydata/web/static/css/*', 'allmydata/web/static/css'), ('src/allmydata/web/static/img/*.png', 'allmydata/web/static/img')] added_files = collect_data_files("allmydata.web")

def collect_dynamic_libs(package): """ This is a version of :py:`PyInstaller.utils.hooks.collect_dynamic_libs` that will include linux shared libraries without a `lib` prefix.
It also only handles dymaic libraries in the root of the package. """ base_path, pkg_path = get_package_paths(package) pkg_rel_path = remove_prefix(pkg_path, base_path) dylibs = [] for lib_ext in ["*.dll", "*.dylib", "*.pyd", "*.so"]: for file in glob.glob(os.path.join(pkg_path, lib_ext)): dylibs.append((file, pkg_rel_path)) return dylibs

binaries = collect_dynamic_libs("challenge_bypass_ristretto")
hidden_imports = [ '__builtin__', 'allmydata.client', 'allmydata.introducer', 'allmydata.stats', 'allmydata.web' 'base64', 'cffi', 'collections', 'commands', 'Crypto', 'functools', 'future.backports.misc', 'itertools', 'math', 'packaging.specifiers', 're', 'reprlib', 'six.moves.html_parser', 'subprocess', 'commands', 'Crypto', 'functools', 'future.backports.misc', 'itertools', 'math', 'packaging.specifiers', 're', 'reprlib', 'six.moves.html_parser', 'subprocess', 'twisted.plugins.zkapauthorizer', 'UserDict', 'UserList', Expand All @@ -53,9 +73,9 @@ hidden_imports = [ ]
a = Analysis( ['static/tahoe.py'], ["../../misc/tahoe.py"], pathex=[], binaries=None, binaries=binaries, datas=added_files, hiddenimports=hidden_imports, hookspath=["../../pyinstaller-hooks"], Expand Down