Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
91015bd2
Commit
91015bd2
authored
Mar 23, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylibmc
parent
907b6662
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Makefile
Makefile
+1
-0
pylibmc
bin/steps/pylibmc
+12
-1
No files found.
Makefile
View file @
91015bd2
...
...
@@ -2,6 +2,7 @@ docs:
mkdir
-p
site
shocco
-t
'Python Buildpack Compiler'
./bin/compile
>
site/index.html
shocco
-t
'Django Buildpack Compiler'
./bin/steps/django
>
site/django.html
shocco
-t
'Pylibmc Buildpack Compiler'
./bin/steps/pylibmc
>
site/pylibmc.html
site
:
docs
cd
site
&&
git add
-A
&&
git commit
-m
'update'
&&
git push heroku master
...
...
bin/steps/pylibmc
View file @
91015bd2
#!/usr/bin/env bash
# This script serves as the Pylibmc build step of the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
#
# This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled libmemcached binary.
VENDORED_MEMCACHED
=
"http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"
#
if pylibmc within requirements, use vendored libmemcached
#
If pylibmc exists within requirements, use vendored libmemcached.
if
(
grep
-Fiq
"pylibmc"
requirements.txt
)
then
echo
"-----> Noticed pylibmc. Bootstrapping libmemcached."
...
...
@@ -11,6 +21,7 @@ then
if
[
-d
"vendor/lib/sasl2"
]
;
then
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
else
# Download and extract libmemcached into target vendor directory.
curl
-s
-L
-o
tmp-libmemcached.tar.gz
$VENDORED_MEMCACHED
tar
-zxvf
tmp-libmemcached.tar.gz
>
/dev/null
rm
tmp-libmemcached.tar.gz
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment