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
f18754f8
Commit
f18754f8
authored
Aug 01, 2014
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylibmc attempt
parent
e860234d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
pylibmc
bin/steps/pylibmc
+3
-6
No files found.
bin/steps/pylibmc
View file @
f18754f8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
# This script is invoked by [`bin/compile`](/).
# This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled libmemcached binary.
# The location of the pre-compiled libmemcached binary.
VENDORED_MEMCACHED
=
"http://
cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached
.tar.gz"
VENDORED_MEMCACHED
=
"http://
lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/libmemcache
.tar.gz"
# Syntax sugar.
# Syntax sugar.
source
$BIN_DIR
/utils
source
$BIN_DIR
/utils
...
@@ -19,20 +19,17 @@ bpwatch start pylibmc_install
...
@@ -19,20 +19,17 @@ bpwatch start pylibmc_install
# If pylibmc exists within requirements, use vendored libmemcached.
# If pylibmc exists within requirements, use vendored libmemcached.
if
(
pip-grep
-s
requirements.txt pylibmc
)
then
if
(
pip-grep
-s
requirements.txt pylibmc
)
then
echo
"-----> Noticed pylibmc. Bootstrapping libmemcached."
cd
.heroku
cd
.heroku
if
[
-d
"vendor/lib/sasl2"
]
;
then
if
[
-d
"vendor/lib/sasl2"
]
;
then
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
else
else
echo
"-----> Noticed pylibmc. Bootstrapping libmemcached."
# Download and extract libmemcached into target vendor directory.
# Download and extract libmemcached into target vendor directory.
curl
-s
-L
-o
tmp-libmemcached.tar.gz
$VENDORED_MEMCACHED
curl
$VENDORED_MEMCACHED
-s
|
tar
zxv
-C
.heroku/vendor
tar
-zxvf
tmp-libmemcached.tar.gz
>
/dev/null
rm
tmp-libmemcached.tar.gz
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
fi
fi
export
LIBMEMCACHED
=
$(
pwd
)
/vendor
cd
..
cd
..
fi
fi
...
...
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