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
1b0fd2e4
Commit
1b0fd2e4
authored
Mar 06, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into decouple
parents
24cd70dc
4be3d87e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
compile
bin/compile
+6
-0
detect
bin/detect
+5
-2
No files found.
bin/compile
View file @
1b0fd2e4
...
@@ -89,6 +89,12 @@ source $BIN_DIR/steps/pylibmc
...
@@ -89,6 +89,12 @@ source $BIN_DIR/steps/pylibmc
echo
"-----> Activating virtualenv"
echo
"-----> Activating virtualenv"
source
bin/activate
source
bin/activate
# If no requirements, assume 'setup.py install'
if
[
!
-f
requirements.txt
]
;
then
echo
"."
>
requirements.txt
fi
# Install mercurial, if needed.
# Install mercurial, if needed.
if
(
grep
-Fiq
"hg+"
requirements.txt
)
then
if
(
grep
-Fiq
"hg+"
requirements.txt
)
then
pip
install
--use-mirrors
mercurial | indent
pip
install
--use-mirrors
mercurial | indent
...
...
bin/detect
View file @
1b0fd2e4
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
# bin/detect <build-dir>
# bin/detect <build-dir>
BUILD_DIR
=
$1
BUILD_DIR
=
$1
[
-f
$BUILD_DIR
/requirements.txt
]
||
exit
1
# fail fast if no requirements.txt
if
[
-f
$BUILD_DIR
/requirements.txt
]
||
[
-f
$BUILD_DIR
/setup.py
]
;
then
exit
1
fi
# 'Python/Django' if there is a [mysite]/settings.py file present; otherwise 'Python'
# 'Python/Django' if there is a [mysite]/settings.py file present; otherwise 'Python'
ls
$BUILD_DIR
/
**
/settings.py &> /dev/null
&&
echo
Python/Django
||
echo
Python
ls
$BUILD_DIR
/
**
/settings.py &> /dev/null
&&
echo
Python/Django
||
echo
Python
\ No newline at end of file
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