structure is flowing

This commit is contained in:
Kenneth Reitz
2014-03-06 13:13:31 -05:00
parent 575f9e9d44
commit 8907e22e66
8 changed files with 144 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
from . import cli
+29
View File
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
"""Usage: bob [-vqrh] [FILE] ...
bob (--left | --right) CORRECTION FILE
Process FILE and optionally apply correction to either left-hand side or
right-hand side.
Arguments:
FILE optional input file
CORRECTION correction angle, needs FILE, --left or --right to be present
Options:
-h --help
-v verbose mode
-q quiet mode
-r make report
--left use left-hand side
--right use right-hand side
"""
from docopt import docopt
def dispatch():
print 'welcome to bob!'
print
arguments = docopt(__doc__)
print(arguments)
+4 -1
View File
@@ -1 +1,4 @@
boto
-e .
boto==2.26.1
docopt==0.6.1
wsgiref==0.1.2
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
deps = [
'boto',
'docopt'
]
setup(
name='bob',
version='0.0.1',
install_requires=deps,
description='Binary Build Toolkit.',
# long_description='Meh.',/
author='Kenneth Reitz',
author_email='kenneth@heroku.com',
url='https://github.com/heroku/build-toolkit',
packages=['bob'],
# license='MIT',
entry_points={
'console_scripts': [
'bob = bob:cli.dispatch',
],
}
)
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Usage: $ build.sh <output-dir>
OUT_PREFIX=$1
SOURCE_TARBALL='ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz'
curl $SOURCE_TARBALL | tar xz
# jx
mv libffi-3.0.13 libffi
cd libffi
./configure --prefix=$OUT_PREFIX
make
make install
# Cleanup
cd ..
rm -fr libffi
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Usage: $ build.sh <output-dir>
OUT_PREFIX=$1
SOURCE_TARBALL='http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz'
curl $SOURCE_TARBALL | tar xz
# jx
mv sqlite-autoconf-3070900 sqlite
cd sqlite
./configure --prefix=$OUT_PREFIX
make
make install
# Cleanup
cd ..
rm -fr sqlite
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Options: <output-dir>
OUT_PREFIX=$1
echo "Building SQLite..."
./parts/sqlite $OUT_PREFIX
echo "Building Python..."
SOURCE_TARBALL='http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.6 src
cd src
./configure --prefix=$OUT_PREFIX
make
make install
cd ..
rm -fr src
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Options: <output-dir>
OUT_PREFIX=$1
echo "Building SQLite..."
./parts/sqlite $OUT_PREFIX
echo "Building Python..."
SOURCE_TARBALL='http://python.org/ftp/python/3.3.4/Python-3.3.4.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-3.3.4 src
cd src
./configure --prefix=$OUT_PREFIX
make
make install
cd ..
rm -fr src
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python