Skip to content

Commit

Permalink
Remove unnecessarily created globals
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhopper committed Aug 6, 2015
1 parent 9381e70 commit a50e444
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
from argparse import ArgumentParser


# Initialize
try:
token = os.environ['ANACONDA_TOKEN']
except KeyError:
sys.exit("Must set $ANACONDA_TOKEN")
anaconda = sh.Command('anaconda').bake(t=token)
conda = sh.Command('conda')


def build_and_publish(path, channel):
try:
token = os.environ['ANACONDA_TOKEN']
except KeyError:
sys.exit("Must set $ANACONDA_TOKEN")
anaconda = sh.Command('anaconda').bake(t=token)
conda = sh.Command('conda')

binfile = conda.build("--output", path).strip()
print "Building..."
conda.build(path)
Expand Down

0 comments on commit a50e444

Please sign in to comment.