Skip to content

Commit

Permalink
Issue #304: Add wrapper scripts for pyinstaller cli utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
matysek committed Feb 26, 2013
1 parent ef9bfc7 commit 3ad406f
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 0 deletions.
27 changes: 27 additions & 0 deletions utils/archive_viewer.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.archive_viewer import run
run()
27 changes: 27 additions & 0 deletions utils/bindepend.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.bindepend import run
run()
27 changes: 27 additions & 0 deletions utils/build.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.build import run
run()
27 changes: 27 additions & 0 deletions utils/grab_version.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.grab_version import run
run()
27 changes: 27 additions & 0 deletions utils/make_comserver.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.make_comserver import run
run()
27 changes: 27 additions & 0 deletions utils/makespec.py
@@ -0,0 +1,27 @@
#! /usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------


try:
import PyInstaller
except ImportError:
# if importing PyInstaller fails, try to load from parent
# directory to support running without installation.
import imp
import os
# Prevent running as superuser (root).
if not hasattr(os, "getuid") or os.getuid() != 0:
imp.load_module('PyInstaller', *imp.find_module('PyInstaller',
[os.path.dirname(os.path.dirname(os.path.abspath(__file__)))]))


if __name__ == '__main__':
from PyInstaller.cliutils.makespec import run
run()

0 comments on commit 3ad406f

Please sign in to comment.