BVB Source Codes

voltron Show setup.py Source code

Return Download voltron: download setup.py Source code - Download voltron Source code - Type:.py
  1. from __future__ import print_function
  2.  
  3. import sys
  4. import platform
  5. import textwrap
  6. from subprocess import check_output
  7. from setuptools import setup, find_packages
  8.  
  9.  
  10. def check_install():
  11.     """
  12.    Try to detect the two most common installation errors:
  13.  
  14.    1. Installing on macOS using a Homebrew version of Python
  15.    2. Installing on Linux using Python 2 when GDB is linked with Python 3
  16.    """
  17.     if platform.system() == 'Darwin' and sys.executable != '/usr/bin/python':
  18.         print("*" * 79)
  19.         print(textwrap.fill(
  20.             "WARNING: You are not using the version of Python included with "
  21.             "macOS. If you intend to use Voltron with the LLDB included "
  22.             "with Xcode, or GDB installed with Homebrew, it will not work "
  23.             "unless it is installed using the system's default Python. If "
  24.             "you intend to use Voltron with a debugger installed by some "
  25.             "other method, it may be safe to ignore this warning. See the "
  26.             "following documentation for more detailed installation "
  27.             "instructions: "
  28.             "https://github.com/snare/voltron/wiki/Installation", 79))
  29.         print("*" * 79)
  30.     elif platform.system() == 'Linux':
  31.         try:
  32.             output = check_output([
  33.                 "gdb", "-batch", "-q", "--nx", "-ex",
  34.                 "pi print(sys.version_info.major)"
  35.             ]).decode("utf-8")
  36.             gdb_python = int(output)
  37.  
  38.             if gdb_python != sys.version_info.major:
  39.                 print("*" * 79)
  40.                 print(textwrap.fill(
  41.                     "WARNING: You are installing Voltron using Python {0}.x "
  42.                     "and GDB is linked with Python {1}.x. GDB will not be "
  43.                     "able to load Voltron. Please install using Python {1} "
  44.                     "if you intend to use Voltron with the copy of GDB that "
  45.                     "is installed. See the following documentation for more "
  46.                     "detailed installation instructions: "
  47.                     "https://github.com/snare/voltron/wiki/Installation"
  48.                     .format(sys.version_info.major, gdb_python), 79))
  49.                 print("*" * 79)
  50.         except:
  51.             pass
  52.  
  53.  
  54. check_install()
  55.  
  56.  
  57. requirements = [
  58.     'scruffington>=0.3.6',
  59.     'flask',
  60.     'flask_restful',
  61.     'blessed',
  62.     'pygments',
  63.     'requests',
  64.     'requests_unixsocket',
  65.     'six',
  66.     'pysigset',
  67.     'pygments',
  68. ]
  69. if sys.platform == 'win32':
  70.     requirements.append('cursor')
  71.  
  72.  
  73. setup(
  74.     name="voltron",
  75.     version="0.1.7",
  76.     author="snare",
  77.     author_email="snare@ho.ax",
  78.     description="A debugger UI",
  79.     license="MIT",
  80.     keywords="voltron debugger ui gdb lldb vdb "
  81.              "vivisect vtrace windbg cdb pykd",
  82.     url="https://github.com/snare/voltron",
  83.     packages=find_packages(exclude=['tests', 'examples']),
  84.     install_requires=requirements,
  85.     package_data={'voltron': ['config/*']},
  86.     entry_points={
  87.         'console_scripts': ['voltron=voltron:main'],
  88.         'pygments.lexers': [
  89.             'lldb_intel = voltron.lexers:LLDBIntelLexer',
  90.             'lldb_att = voltron.lexers:LLDBATTLexer',
  91.             'gdb_intel = voltron.lexers:GDBIntelLexer',
  92.             'gdb_att = voltron.lexers:GDBATTLexer',
  93.             'vdb_intel = voltron.lexers:VDBIntelLexer',
  94.             'vdb_att = voltron.lexers:VDBATTLexer',
  95.             'windbg_intel = voltron.lexers:WinDbgIntelLexer',
  96.             'windbg_att = voltron.lexers:WinDbgATTLexer',
  97.             'capstone_intel = voltron.lexers:CapstoneIntelLexer',
  98.         ],
  99.         'pygments.styles': [
  100.             'volarized = voltron.styles:VolarizedStyle',
  101.         ]
  102.     },
  103.     zip_safe=False
  104. )
  105.  
downloadsetup.py Source code - Download voltron Source code
Related Source Codes/Software:
IGListKit - A data-driven UICollectionView framework for build... 2017-01-11
androidmvp - MVP Android Example 2017-01-11
svelte - The magical disappearing UI framework ... 2017-01-11
kcptun - A Simple UDP Tunnel Based On KCP 2017-01-11
poisontap - Exploits locked/password protected computers over ... 2017-01-10
ecma262 - Status, process, and documents for ECMA262 ... 2017-01-11
react-native-elements - React Native Elements UI Toolkit 2017-01-11
tensorflow-zh - Google new open source ai system TensorFlow Chines... 2017-01-11
forum - Blue light (the Lantern) the official BBS 2017-01-11
socketcluster - Highly scalable realtime framework ... 2017-01-11
jquery-boilerplate - A jump-start for jQuery plugins development ... 2017-02-19
MVVMReactiveCocoa - GitBucket iOS A 2017-02-19
ios-webkit-debug-proxy - A DevTools proxy (Chrome Remote Debugging Protocol... 2017-02-19
jump.js - A modern smooth scrolling library. ... 2017-02-19
GoSublime - A Golang plugin collection for SublimeText **3**, ... 2017-02-19
awesome-emacs - A community driven list of useful Emacs packages, ... 2017-02-19
RKNotificationHub - Make any UIView a full fledged notification center 2017-02-19
vimr - Project VimR - Refined Neovim experience for macOS... 2017-02-19
vue-admin - Vue Admin Panel Framework, Powered by Vue 2.0 and ... 2017-02-19
dev-setup - Mac OS X development environment setup: Easy-to-un... 2017-02-19

 Back to top