Merge pull request #416 from ThomasWaldmann/pyinstaller-no-hidden-import

avoid hidden import, make it easy for pyinstaller
This commit is contained in:
TW 2015-11-15 16:32:31 +01:00
commit fac11608f6
3 changed files with 6 additions and 2 deletions

2
Vagrantfile vendored
View file

@ -237,7 +237,7 @@ def build_binary_with_pyinstaller(boxname)
cd /vagrant/borg
. borg-env/bin/activate
cd borg
pyinstaller -F -n borg.exe --distpath=/vagrant/borg --clean --hidden-import=logging.config borg/__main__.py
pyinstaller -F -n borg.exe --distpath=/vagrant/borg --clean borg/__main__.py
EOF
end

View file

@ -33,6 +33,10 @@ The way to use this is as follows:
import inspect
import logging
# make it easy for PyInstaller (it does not discover the dependency on this
# module automatically, because it is lazy-loaded by logging, see #218):
import logging.config
def setup_logging(stream=None):
"""setup logging module according to the arguments provided

View file

@ -129,7 +129,7 @@ When using the Vagrant VMs, pyinstaller will already be installed.
With virtual env activated::
pip install pyinstaller>=3.0 # or git checkout master
pyinstaller -F -n borg-PLATFORM --hidden-import=logging.config borg/__main__.py
pyinstaller -F -n borg-PLATFORM borg/__main__.py
for file in dist/borg-*; do gpg --armor --detach-sign $file; done
If you encounter issues, see also our `Vagrantfile` for details.