eggs Package

eggs Package

Manage Galaxy eggs

class galaxy.eggs.CaseSensitiveConfigParser(defaults=None, dict_type=<class 'collections.OrderedDict'>, allow_no_value=False)[source]

Bases: ConfigParser.SafeConfigParser

optionxform(optionstr)[source]
class galaxy.eggs.Crate(galaxy_config_file=None, platform=None)[source]

Bases: object

Reads the eggs.ini file for use with checking and fetching.

all_eggs

Return a list of all eggs in the crate.

all_missing

Return true if any eggs in the eggs config file are missing.

all_names

Return a list of names of all eggs in the crate.

config_eggs

Return a list of all eggs in the crate that are needed based on the options set in the Galaxy config file.

config_file = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/eggs.ini'
config_missing

Return true if any eggs are missing, conditional on options set in the Galaxy config file.

config_names

Return a list of names of all eggs in the crate that are needed based on the options set in the Galaxy config file.

parse()[source]
parse_egg_section(eggs, tags, full_platform=False, egg_class=<class 'galaxy.eggs.Egg'>)[source]
resolve(all=False)[source]

Try to resolve (e.g. fetch) all eggs in the crate.

class galaxy.eggs.Egg(name=None, version=None, tag=None, url=None, platform=None, crate=None)[source]

Bases: object

Contains information about locating and downloading eggs.

fetch() serves as the install method to pkg_resources.working_set.resolve()[source]
path

Return the path of the egg, if it exists, or None

remove_doppelgangers()[source]
require()[source]
resolve()[source]
set_dir()[source]
set_distribution()[source]

Stores a pkg_resources Distribution object for reference later

unpack_if_needed()[source]
version_conflict(conflict_dist, conflict_req)[source]
exception galaxy.eggs.EggNotFetchable(eggs)[source]

Bases: exceptions.Exception

class galaxy.eggs.GalaxyConfig(config_file)[source]

Bases: object

always_conditional = ('pysam', 'ctypes', 'python_daemon')
check_conditional(egg_name)[source]
class galaxy.eggs.URLRetriever(*args, **kwargs)[source]

Bases: urllib.FancyURLopener

http_error_default(*args)[source]
galaxy.eggs.get_env()[source]
galaxy.eggs.remove_file_or_path(f)[source]
galaxy.eggs.require(req_str)[source]
galaxy.eggs.string_as_bool(string)[source]
galaxy.eggs.unpack_zipfile(filename, extract_dir, ignores=[])[source]

dist Module

Manage Galaxy eggs

class galaxy.eggs.dist.DistScrambleCrate(galaxy_config_file, build_on='all')[source]

Bases: galaxy.eggs.scramble.ScrambleCrate

Holds eggs with info on how to build them for distribution.

dist_config_file = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/dist-eggs.ini'
get_platforms(wanted)[source]
parse()[source]
parse_egg_section(eggs, tags, full_platform=False)[source]
class galaxy.eggs.dist.DistScrambleEgg(*args, **kwargs)[source]

Bases: galaxy.eggs.scramble.ScrambleEgg

path
run_scramble_script()[source]
set_dir()[source]
unpack_if_needed()[source]

scramble Module

Manage Galaxy eggs

class galaxy.eggs.scramble.ScrambleCrate(galaxy_config_file=None, platform=None)[source]

Bases: galaxy.eggs.__init__.Crate

Reads the eggs.ini file for use with scrambling eggs.

parse()[source]
parse_egg_section(*args, **kwargs)[source]
scramble(all=False)[source]
class galaxy.eggs.scramble.ScrambleEgg(*args, **kwargs)[source]

Bases: galaxy.eggs.__init__.Egg

Contains information about scrambling eggs.

archive_dir = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/scripts/scramble/archives'
build_dir = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/scripts/scramble/build'
copy_build_script()[source]
ez_setup = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/scripts/scramble/lib/ez_setup.py'
ez_setup_url = 'http://peak.telecommunity.com/dist/ez_setup.py'
fetch_one(urls)[source]

Fetches the first available archive out of a list.

fetch_source()[source]

Get egg (and dependent) source

get_tld(names)[source]
run_scramble_script()[source]
scramble()[source]
scramble_dir = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/scripts/scramble'
script_dir = '/var/build/user_builds/jmchilton-galaxy/checkouts/latest/scripts/scramble/scripts'
unpack_source()[source]
unpack_tar()[source]
unpack_zip()[source]
exception galaxy.eggs.scramble.ScrambleFailure(eggs, msg=None)[source]

Bases: exceptions.Exception