Skip to content

Instantly share code, notes, and snippets.

@arianepaola
Last active June 10, 2016 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arianepaola/96c9255ec9594a1140fd5d655dbada13 to your computer and use it in GitHub Desktop.
Save arianepaola/96c9255ec9594a1140fd5d655dbada13 to your computer and use it in GitHub Desktop.
Shogun setup.py
from setuptools import setup, find_packages
import glob
import re
import os
shogun_generated_install = os.path.abspath('build/install')
shogun_versionstring_h = os.path.abspath('src/shogun/lib/versionstring.h')
shogun_python_packages_location = glob.glob(os.path.join(shogun_generated_install, 'lib/*/dist-packages'))[0]
shogun_completed_cmake = False
shogun_completed_make = False
shogun_completed_make_install = False
show_debug_information = True
def shogun_bootstrap():
global shogun_completed_cmake
global shogun_completed_make
global shogun_completed_make_install
print("Bootstrapping Shogun")
if run_cmake():
shogun_completed_cmake = True
else:
pass
if run_make():
shogun_completed_make = True
else:
pass
if run_make_install():
shogun_completed_make_install = True
else:
pass
if shogun_preconditions_met():
print("Bootstrapping Shogun successfully completed!")
def shogun_preconditions_met():
print("Verifying Shogun preconditions")
if show_debug_information:
print("Shogun build environment completed tasks: cmake: [%s] - make: [%s] - make install: [%s]" % (shogun_completed_cmake, shogun_completed_make, shogun_completed_make_install))
return shogun_completed_cmake and shogun_completed_make and shogun_completed_make_install
def shogun_preconditions():
if not shogun_preconditions_met():
shogun_bootstrap()
return shogun_preconditions_met()
def shogun_debug_information():
if show_debug_information:
print("Shogun generated installation location %s" % shogun_generated_install)
print("Shogun Python package location: %s" % shogun_python_packages_location)
print("Shogun version string location: %s" % shogun_versionstring_h)
def parse_shogun_version(version_header):
shogun_version_pattern = re.compile(ur'#define MAINVERSION \"([0-9]\.[0-9]\.[0-9])\"')
with open(version_header, 'r') as f:
content = f.read()
matches = re.findall(shogun_version_pattern, content)
if len(matches):
return matches[0]
else:
return 'undefined'
def run_cmake():
print("Running CMake")
return True
def run_make():
print("Running make")
return True
def run_make_install():
print("Running make install")
return True
def get_shogun_version():
print("Retrieving Shogun version")
if shogun_preconditions():
shogun_version = parse_shogun_version(shogun_versionstring_h)
if show_debug_information:
print('The Shogun version is %s' % shogun_version)
return shogun_version
def python_package_path(package_path):
print("Generating destination Python package path")
directories = package_path.split(os.sep)
found_path = os.path.join(directories[-2], directories[-1])
if show_debug_information:
print("Shogun destination Python package path: %s" % found_path)
return found_path
def shogun_data_files():
data_files = list()
libshogun_files = glob.glob(os.path.join(shogun_generated_install, 'lib/libshogun*'))
modshogun_so_destination = os.path.join('lib', python_package_path(shogun_python_packages_location))
modshogun_so_file = glob.glob(os.path.join(shogun_python_packages_location, '_modshogun.so'))[0]
# appending data files
data_files.append(('lib', libshogun_files))
data_files.append((modshogun_so_destination, [modshogun_so_file]))
if show_debug_information:
print('Shogun Python package data files:')
for data_file_content in data_files:
print('|->[%s]' % data_file_content[0])
for data_file in data_file_content[1]:
print(' |--> %s' % os.path.basename(data_file))
return data_files
shogun_debug_information()
setup(
name = "shogun",
version = get_shogun_version(),
packages = find_packages(where=shogun_python_packages_location),
package_dir = {'': shogun_python_packages_location},
py_modules =['modshogun'],
data_files = shogun_data_files()
)
Building dist package
======================
python setup.py bdist
Shogun generated installation location /home/vagrant/shogun/build/install
Shogun Python package location: /home/vagrant/shogun/build/install/lib/python2.7/dist-packages
Shogun version string location: /home/vagrant/shogun/src/shogun/lib/versionstring.h
Retrieving Shogun version
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [False] - make: [False] - make install: [False]
Bootstrapping Shogun
Running CMake
Running make
Running make install
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
Bootstrapping Shogun successfully completed!
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
The Shogun version is 4.2.0
Generating destination Python package path
Shogun destination Python package path: python2.7/dist-packages
Shogun Python package data files:
|->[lib]
|--> libshogun.so.17
|--> libshogun.so.17.2
|--> libshogun.so
|->[lib/python2.7/dist-packages]
|--> _modshogun.so
running bdist
running bdist_dumb
running build
running build_py
installing to build/bdist.linux-x86_64/dumb
running install
running install_lib
creating build/bdist.linux-x86_64/dumb
creating build/bdist.linux-x86_64/dumb/usr
creating build/bdist.linux-x86_64/dumb/usr/local
creating build/bdist.linux-x86_64/dumb/usr/local/lib
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages
copying build/lib.linux-x86_64-2.7/modshogun.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Evaluation
copying build/lib.linux-x86_64-2.7/shogun/Evaluation/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Evaluation
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/IO
copying build/lib.linux-x86_64-2.7/shogun/IO/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/IO
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distribution
copying build/lib.linux-x86_64-2.7/shogun/Distribution/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distribution
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Regression
copying build/lib.linux-x86_64-2.7/shogun/Regression/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Regression
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Classifier
copying build/lib.linux-x86_64-2.7/shogun/Classifier/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Classifier
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Latent
copying build/lib.linux-x86_64-2.7/shogun/Latent/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Latent
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Kernel
copying build/lib.linux-x86_64-2.7/shogun/Kernel/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Kernel
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Converter
copying build/lib.linux-x86_64-2.7/shogun/Converter/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Converter
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Structure
copying build/lib.linux-x86_64-2.7/shogun/Structure/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Structure
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Clustering
copying build/lib.linux-x86_64-2.7/shogun/Clustering/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Clustering
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Library
copying build/lib.linux-x86_64-2.7/shogun/Library/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Library
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distance
copying build/lib.linux-x86_64-2.7/shogun/Distance/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distance
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Statistics
copying build/lib.linux-x86_64-2.7/shogun/Statistics/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Statistics
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Preprocessor
copying build/lib.linux-x86_64-2.7/shogun/Preprocessor/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Preprocessor
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Loss
copying build/lib.linux-x86_64-2.7/shogun/Loss/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Loss
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Mathematics
copying build/lib.linux-x86_64-2.7/shogun/Mathematics/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Mathematics
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Features
copying build/lib.linux-x86_64-2.7/shogun/Features/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Features
copying build/lib.linux-x86_64-2.7/shogun/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/ModelSelection
copying build/lib.linux-x86_64-2.7/shogun/ModelSelection/__init__.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/ModelSelection
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/modshogun.py to modshogun.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Evaluation/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/IO/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distribution/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Regression/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Classifier/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Latent/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Kernel/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Converter/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Structure/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Clustering/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Library/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Distance/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Statistics/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Preprocessor/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Loss/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Mathematics/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/Features/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun/ModelSelection/__init__.py to __init__.pyc
running install_data
copying /home/vagrant/shogun/build/install/lib/libshogun.so.17 -> build/bdist.linux-x86_64/dumb/usr/local/lib
copying /home/vagrant/shogun/build/install/lib/libshogun.so.17.2 -> build/bdist.linux-x86_64/dumb/usr/local/lib
copying /home/vagrant/shogun/build/install/lib/libshogun.so -> build/bdist.linux-x86_64/dumb/usr/local/lib
copying /home/vagrant/shogun/build/install/lib/python2.7/dist-packages/_modshogun.so -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages
running install_egg_info
running egg_info
writing /home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info/PKG-INFO
writing top-level names to /home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info/top_level.txt
writing dependency_links to /home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info/dependency_links.txt
reading manifest file '/home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info/SOURCES.txt'
writing manifest file '/home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info/SOURCES.txt'
Copying /home/vagrant/shogun/build/install/lib/python2.7/dist-packages/shogun.egg-info to build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/dist-packages/shogun-4.2.0.egg-info
running install_scripts
creating /home/vagrant/shogun/dist
Creating tar archive
removing 'build/bdist.linux-x86_64/dumb' (and everything under it)
Package content of tar xzvf shogun-4.2.0.linux-x86_64.tar.gz
==============================================================
tree usr/
usr/
└── local
└── lib
├── libshogun.so
├── libshogun.so.17
├── libshogun.so.17.2
└── python2.7
└── dist-packages
├── modshogun.py
├── modshogun.pyc
├── _modshogun.so
├── shogun
│   ├── Classifier
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Clustering
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Converter
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Distance
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Distribution
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Evaluation
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Features
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── __init__.py
│   ├── __init__.pyc
│   ├── IO
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Kernel
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Latent
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Library
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Loss
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Mathematics
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── ModelSelection
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Preprocessor
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Regression
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   ├── Statistics
│   │   ├── __init__.py
│   │   └── __init__.pyc
│   └── Structure
│   ├── __init__.py
│   └── __init__.pyc
└── shogun-4.2.0.egg-info
├── dependency_links.txt
├── PKG-INFO
├── SOURCES.txt
└── top_level.txt
24 directories, 48 files
Running pip install
====================
pip install --user --upgrade .
Unpacking /home/vagrant/shogun
Running setup.py (path:/tmp/pip-2I1DGc-build/setup.py) egg_info for package from file:///home/vagrant/shogun
Shogun generated installation location /tmp/pip-2I1DGc-build/build/install
Shogun Python package location: /tmp/pip-2I1DGc-build/build/install/lib/python2.7/dist-packages
Shogun version string location: /tmp/pip-2I1DGc-build/src/shogun/lib/versionstring.h
Retrieving Shogun version
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [False] - make: [False] - make install: [False]
Bootstrapping Shogun
Running CMake
Running make
Running make install
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
Bootstrapping Shogun successfully completed!
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
The Shogun version is 4.2.0
Generating destination Python package path
Shogun destination Python package path: python2.7/dist-packages
Shogun Python package data files:
|->[lib]
|--> libshogun.so.17
|--> libshogun.so.17.2
|--> libshogun.so
|->[lib/python2.7/dist-packages]
|--> _modshogun.so
Installing collected packages: shogun
Found existing installation: shogun 4.2.0
Uninstalling shogun:
Successfully uninstalled shogun
Running setup.py install for shogun
Shogun generated installation location /tmp/pip-2I1DGc-build/build/install
Shogun Python package location: /tmp/pip-2I1DGc-build/build/install/lib/python2.7/dist-packages
Shogun version string location: /tmp/pip-2I1DGc-build/src/shogun/lib/versionstring.h
Retrieving Shogun version
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [False] - make: [False] - make install: [False]
Bootstrapping Shogun
Running CMake
Running make
Running make install
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
Bootstrapping Shogun successfully completed!
Verifying Shogun preconditions
Shogun build environment completed tasks: cmake: [True] - make: [True] - make install: [True]
The Shogun version is 4.2.0
Generating destination Python package path
Shogun destination Python package path: python2.7/dist-packages
Shogun Python package data files:
|->[lib]
|--> libshogun.so.17
|--> libshogun.so.17.2
|--> libshogun.so
|->[lib/python2.7/dist-packages]
|--> _modshogun.so
Successfully installed shogun
Cleaning up...
Import Shogun Python module:
==============================
vagrant@shogun-ubuntu-1404:/tmp$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import shogun
>>> print(os.path.abspath(shogun.__file__))
/home/vagrant/.local/lib/python2.7/site-packages/shogun/__init__.pyc
>>> shogun.__dict__
{'__all__': ['Kernel', 'Distance', 'Features', 'Classifier', 'Regression', 'Converter', 'Loss', 'Clustering', 'Evaluation', 'IO', 'Library', 'Mathematics', 'ModelSelection', 'Preprocessor', 'Structure', 'Distribution', 'Statistics', 'Latent'], '__builtins__': {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2014 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, '_': None, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}, '__file__': '/home/vagrant/.local/lib/python2.7/site-packages/shogun/__init__.pyc', '__package__': None, '__path__': ['/home/vagrant/.local/lib/python2.7/site-packages/shogun'], '__name__': 'shogun', '__doc__': None}
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment