Skip to content

Commit

Permalink
Fixes to build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmackinnon committed Jul 11, 2014
1 parent 68966f4 commit b1a3b87
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
_in
dist
MANIFEST
build
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
SHELL := /bin/bash
.PHONY : all package install uninstall
.PHONY : all package install uninstall test

all :
all : dist/ALE-0.1dev.tar.gz

clean :
rm -rf *.pyc dist MANIFEST build

package : ale.py MANIFEST.in README.md setup.py
python setup.py sdist

dist/ALE-0.1dev.tar.gz : package

install : dist/ALE-0.1dev.tar.gz
install :
sudo pip install dist/ALE-0.1dev.tar.gz

uninstall : dist/ALE-0.1dev.tar.gz
yes | sudo pip uninstall ale

test :
cd test && ./read_test.py

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Python ALE (python-ale)

A reader for Avid ALE files.
A reader for Avid ALE files.

## Installation

make && make install
2 changes: 1 addition & 1 deletion ale.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _read_heading(self, line):
raise ValueError("Unknown heading: '%s'.", key)
heading = headings[key]

if heading["options"]:
if heading.get("options", None):
for option in heading["options"]:
if value.lower() == option.lower():
setattr(self, heading['name'], option)
Expand Down

0 comments on commit b1a3b87

Please sign in to comment.