HOMEPATH = os.path.dirname(PACKAGEPATH) # Update __version__ as necessary. if os.path.exists(os.path.join(HOMEPATH, 'setup.py')): # PyInstaller is run directly from source without installation or # __version__ is called from 'setup.py' ... if compat.getenv('PYINSTALLER_DO_RELEASE') == '1': # Suppress the git revision when doing a release. pass elif 'sdist' not in sys.argv: # and 'setup.py' was not called with 'sdist' argument. # For creating source tarball we do not want git revision # in the filename. try: __version__ += get_repo_revision() except Exception: # Write to stderr because stdout is used for eval() statement # in some subprocesses. sys.stderr.write('WARN: failed to parse git revision') else: # PyInstaller was installed by `python setup.py install'. import pkg_resources __version__ = pkg_resources.get_distribution('PyInstaller').version ## Default values of paths where to put files created by PyInstaller. ## Mind option-help in build_main when changes these # Folder where to put created .spec file. DEFAULT_SPECPATH = os.getcwd() # Folder where to put created .spec file. # Where to put the final app.
# Fail hard if Python does not have minimum required version if sys.version_info < (2, 4): raise SystemExit('PyInstaller requires at least Python 2.4, sorry.') # Extend PYTHONPATH with 3rd party libraries bundled with PyInstaller. # (otherwise e.g. macholib won't work on Mac OS X) from PyInstaller import lib sys.path.insert(0, lib.__path__[0]) from PyInstaller import compat from PyInstaller.utils import git VERSION = (2, 1, 0, 'dev', git.get_repo_revision()) is_py25 = compat.is_py25 is_py26 = compat.is_py26 is_py27 = compat.is_py27 is_win = compat.is_win is_cygwin = compat.is_cygwin is_darwin = compat.is_darwin is_linux = compat.is_linux is_solar = compat.is_solar is_aix = compat.is_aix is_unix = compat.is_unix
import os import sys # Fail hard if Python does not have minimum required version if sys.version_info < (2, 3): raise SystemExit('PyInstaller requires at least Python 2.3, sorry.') # Extend PYTHONPATH with 3rd party libraries bundled with PyInstaller. # (otherwise e.g. macholib won't work on Mac OS X) from PyInstaller import lib sys.path.insert(0, lib.__path__[0]) from PyInstaller import compat from PyInstaller.utils import git VERSION = (2, 0, 0, 'dev', git.get_repo_revision()) is_py23 = compat.is_py23 is_py24 = compat.is_py24 is_py25 = compat.is_py25 is_py26 = compat.is_py26 is_py27 = compat.is_py27 is_win = compat.is_win is_cygwin = compat.is_cygwin is_darwin = compat.is_darwin is_linux = compat.is_linux is_solar = compat.is_solar is_aix = compat.is_aix