# Path: packageinfo.py
# BUILD = "1"
# 
# VERSION = "0.8.0.dev0"
# 
# NAME = "simphony"


import sys
import click
import os
import subprocess
import buildcommons as common  # noqa
from packageinfo import BUILD, VERSION, NAME



def bootstrap_devenv():
    try:
        os.makedirs(".devenv")
    except OSError:
        pass

    if not os.path.exists(".devenv/buildrecipes-common"):
        subprocess.check_call([
            "git", "clone",
            "http://github.com/simphony/buildrecipes-common.git",
            ".devenv/buildrecipes-common"
            ])
    sys.path.insert(0, ".devenv/buildrecipes-common")

bootstrap_devenv()

workspace = common.workspace()
common.edmenv_setup()


@click.group()
def cli():
    pass


@cli.command()
def egg():

# Path: packageinfo.py
# BUILD = "1"
# 
# VERSION = "0.8.0.dev0"
# 
# NAME = "simphony"


# Path: edmsetup.py
import sys
import click
import os
import subprocess
import buildcommons as common  # noqa
from packageinfo import BUILD, VERSION, NAME




def bootstrap_devenv():
    try:
        os.makedirs(".devenv")
    except OSError:
        pass

    if not os.path.exists(".devenv/buildrecipes-common"):
        subprocess.check_call([
            "git", "clone",
            "http://github.com/simphony/buildrecipes-common.git",
            ".devenv/buildrecipes-common"
            ])
    sys.path.insert(0, ".devenv/buildrecipes-common")

bootstrap_devenv()

workspace = common.workspace()
common.edmenv_setup()


@click.group()
def cli():
    pass


@cli.command()
def egg():

    common.local_repo_to_edm_egg(".", name=NAME, version=VERSION, build=BUILD)