Fix PyInstaller builds

This commit contains a few small changes to fix PyInstaller frozen
builds (which were recently broken in a few ways by changes introduced
with `tahoe invite`, `tahoe daemonize`, and the addition of "setuptools
>= 28.8.0" to setup_requires) and removes a couple of hacks that are no
longer necessary to create working frozen tahoe executables with
PyInstaller.
This commit is contained in:
Chris Wood
2018-03-29 14:11:15 -04:00
parent d395a11208
commit c850638537
4 changed files with 18 additions and 30 deletions

View File

@ -123,6 +123,8 @@ package_imports = [
('enum34', 'enum'),
('pycparser', 'pycparser'),
('PyYAML', 'yaml'),
('magic-wormhole', 'wormhole'),
('setuptools', 'setuptools')
]
# Dependencies for which we don't know how to get a version number at run-time.
@ -141,14 +143,6 @@ ignorable = [
'twisted-conch',
]
import sys
# Don't try to get the version number of setuptools in frozen builds, because
# that triggers 'site' processing that causes failures. Note that frozen
# builds still (unfortunately) import pkg_resources in .tac files, so the
# entry for setuptools in install_requires above isn't conditional.
if not hasattr(sys, 'frozen'):
package_imports.append(('setuptools', 'setuptools'))
setup_requires = [
'setuptools >= 28.8.0', # for PEP-440 style versions