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
0ff4df4d
Commit
0ff4df4d
authored
Jan 03, 2013
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
much better
parent
9177aa2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
24 deletions
+2
-24
compile
bin/compile
+1
-1
pylibmc
bin/steps/pylibmc
+1
-1
utils
bin/utils
+0
-22
No files found.
bin/compile
View file @
0ff4df4d
...
@@ -171,7 +171,7 @@ set -e
...
@@ -171,7 +171,7 @@ set -e
source
$BIN_DIR
/steps/pylibmc
source
$BIN_DIR
/steps/pylibmc
# Install Mercurial if it appears to be required.
# Install Mercurial if it appears to be required.
if
(
in
-re
q
"hg+"
requirements.txt
)
then
if
(
grep
-Fi
q
"hg+"
requirements.txt
)
then
pip
install
--use-mirrors
mercurial | cleanup | indent
pip
install
--use-mirrors
mercurial | cleanup | indent
fi
fi
...
...
bin/steps/pylibmc
View file @
0ff4df4d
...
@@ -16,7 +16,7 @@ VENDORED_MEMCACHED="http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz
...
@@ -16,7 +16,7 @@ VENDORED_MEMCACHED="http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz
source
$BIN_DIR
/utils
source
$BIN_DIR
/utils
# If pylibmc exists within requirements, use vendored libmemcached.
# If pylibmc exists within requirements, use vendored libmemcached.
if
(
in
-re
q
"pylibmc"
requirements.txt
)
then
if
(
grep
-Fi
q
"pylibmc"
requirements.txt
)
then
echo
"-----> Noticed pylibmc. Bootstrapping libmemcached."
echo
"-----> Noticed pylibmc. Bootstrapping libmemcached."
cd
.heroku
cd
.heroku
...
...
bin/utils
View file @
0ff4df4d
...
@@ -52,25 +52,3 @@ function deep-mv (){
...
@@ -52,25 +52,3 @@ function deep-mv (){
rm -fr $1/!(tmp)
rm -fr $1/!(tmp)
find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
}
}
# Recursively finds requirements.txt files
function list-req (){
echo $@
for req in $(grep -Fie "-r " $@ | sed 's/-r //g')
do
path="$(dirname $@)/$req"
list-req $path
done
}
# Find pattern in requirements files recursively
# Usage: $ in-req pattern file
function in-req (){
for file in $(list-req $2)
do
if (grep -Fiqe "$1" "$file") then
return 0
fi
done
return 1
}
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