Compare commits

..

12 Commits

Author SHA1 Message Date
Kenneth Reitz e2e97b774a Merge remote-tracking branch 'origin/master' 2014-08-21 14:33:06 -04:00
Kenneth Reitz 4f0f97959f package finder update for pip-pop 2014-08-21 14:33:02 -04:00
kennethreitz 93f4eeb227 Merge pull request #162 from cclauss/patch-6
Updated pypy to 2.3.1 and added pypy3
2014-08-19 12:49:28 -04:00
cclauss ec769e00bb Update Readme.md 2014-08-12 22:12:02 +02:00
cclauss ade975d48f Update Readme.md 2014-08-09 08:33:40 +02:00
Kenneth Reitz 16a07abd51 fix for libmemcached & cedar-14 2014-08-06 17:10:23 -04:00
Kenneth Reitz 2bc071b323 python 3 compatibility 2014-08-05 13:33:12 -04:00
cclauss 3c07ec133e Updated pypy to 2.3.1 and added pypy3
Both are marked (unsupported, experimental).
2014-08-05 14:46:28 +02:00
Kenneth Reitz 5c74244695 fix for cryptography detection 2014-08-04 13:11:05 -04:00
Kenneth Reitz 4e877e4f11 conanical source tarball 2014-08-04 12:11:29 -04:00
Kenneth Reitz 51ec7e3741 attempt of libffi 2014-08-01 21:19:44 -04:00
Kenneth Reitz 1f983fea40 libffi for cedar attempt 2014-08-01 21:12:30 -04:00
8 changed files with 45 additions and 15 deletions
+2 -1
View File
@@ -46,6 +46,7 @@ Runtime options include:
- python-2.7.8
- python-3.4.1
- pypy-1.9 (experimental)
- pypy-2.3.1 (unsupported, experimental)
- pypy3-2.3.1 (unsupported, experimental)
Other [unsupported runtimes](https://github.com/heroku/heroku-buildpack-python/tree/master/builds/runtimes) are available as well.
+1 -1
View File
@@ -20,7 +20,7 @@ source $BIN_DIR/utils
bpwatch start libffi_install
# If pylibmc exists within requirements, use vendored cryptography.
if (pip-grep -s requirements.txt cffi pylibmc &> /dev/null) then
if (pip-grep -s requirements.txt cffi crytography &> /dev/null) then
if [ -d ".heroku/vendor/lib/libffi-3.1.1" ]; then
export LIBFFI=$(pwd)/vendor
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python/
OUT_PREFIX=$1
# Use new path, containing autoconf.
export PATH="/app/.heroku/python/bin/:$PATH"
hash -r
echo "Building libffi..."
SOURCE_TARBALL='http://cl.ly/2s1t1u3v0N0I/download/libffi-3.1.tar'
curl -L $SOURCE_TARBALL | tar x
cd libffi-3.1
./configure --prefix=$OUT_PREFIX --disable-static &&
make
make install
# Cleanup
cd ..
+1 -1
View File
@@ -10,7 +10,7 @@ hash -r
echo "Building libffi..."
SOURCE_TARBALL='http://cl.ly/2s1t1u3v0N0I/download/libffi-3.1.tar'
SOURCE_TARBALL='ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz'
curl -L $SOURCE_TARBALL | tar x
+2 -1
View File
@@ -22,7 +22,8 @@ curl -LO ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz
tar xzf cyrus-sasl-2.1.26.tar.gz
pushd cyrus-sasl-2.1.26
./configure --prefix=${OUT_PREFIX}
./configure --prefix=${OUT_PREFIX} --with-plugindir=${OUT_PREFIX}lib/sasl2 --with-configdir=${OUT_PREFIX}lib/sasl2
make -s -j 9
make install -s
popd
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python/
# Build Deps: libraries/sqlite
# Build Deps: libraries/sqlite, libraries/libffi
# NOTICE: This formula only works for the cedar-14 stack, not cedar.
+7 -5
View File
@@ -13,6 +13,7 @@ Options:
import os
from docopt import docopt
from pip.req import parse_requirements
from pip.index import PackageFinder
class Requirements(object):
def __init__(self, reqfile=None):
@@ -31,7 +32,8 @@ class Requirements(object):
if not os.path.exists(reqfile):
raise ValueError('The given requirements file does not exist.')
for requirement in parse_requirements(reqfile):
finder = PackageFinder([], [])
for requirement in parse_requirements(reqfile, finder=finder):
if requirement.req:
self.requirements.append(requirement.req)
@@ -79,18 +81,18 @@ def diff(r1, r2, include_fresh=False, include_stale=False):
r1 = Requirements(r1)
r2 = Requirements(r2)
except ValueError:
print 'There was a problem loading the given requirements files.'
print('There was a problem loading the given requirements files.')
exit(os.EX_NOINPUT)
results = r1.diff(r2, ignore_versions=True)
if include_fresh:
for line in results['fresh']:
print line.project_name if include_versions else line
print(line.project_name if include_versions else line)
if include_stale:
for line in results['stale']:
print line.project_name if include_versions else line
print(line.project_name if include_versions else line)
@@ -109,4 +111,4 @@ def main():
if __name__ == '__main__':
main()
main()
+8 -5
View File
@@ -10,6 +10,8 @@ Options:
import os
from docopt import docopt
from pip.req import parse_requirements
from pip.index import PackageFinder
class Requirements(object):
def __init__(self, reqfile=None):
@@ -28,7 +30,8 @@ class Requirements(object):
if not os.path.exists(reqfile):
raise ValueError('The given requirements file does not exist.')
for requirement in parse_requirements(reqfile):
finder = PackageFinder([], [])
for requirement in parse_requirements(reqfile, finder=finder):
self.requirements.append(requirement)
@@ -41,7 +44,7 @@ def grep(reqfile, packages, silent=False):
except ValueError:
if not silent:
print 'There was a problem loading the given requirement file.'
print('There was a problem loading the given requirement file.')
exit(os.EX_NOINPUT)
@@ -52,12 +55,12 @@ def grep(reqfile, packages, silent=False):
if requirement.req.project_name in packages:
if not silent:
print 'Package {} found!'.format(requirement.req.project_name)
print('Package {} found!'.format(requirement.req.project_name))
exit(0)
if not silent:
print 'Not found.'.format(requirement.req.project_name)
print('Not found.'.format(requirement.req.project_name))
exit(1)
@@ -73,4 +76,4 @@ def main():
if __name__ == '__main__':
main()
main()