Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f162ee91
Commit
f162ee91
authored
Oct 03, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create-dev-env script for Mac OS 10.8 and latest stable rvm
parent
fa575a21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
create-dev-env.sh
+30
-12
No files found.
create-dev-env.sh
View file @
f162ee91
...
...
@@ -244,14 +244,18 @@ EO
brew install
$pkg
}
done
# paths where brew likes to install python scripts
PATH
=
/usr/local/share/python:/usr/local/bin:
$PATH
command
-v
pip &>/dev/null
||
{
output
"Installing pip"
sudo
easy_install pip
easy_install pip
}
if
!
grep
-Eq
^1.7 <
(
virtualenv
--version
2>/dev/null
)
;
then
output
"Installing virtualenv >1.7"
sudo
pip install
'virtualenv>1.7'
virtualenvwrapper
pip install
'virtualenv>1.7'
virtualenvwrapper
fi
command
-v
coffee &>/dev/null
||
{
...
...
@@ -267,18 +271,10 @@ EO
esac
output
"Installing rvm and ruby"
curl
-sL
get.rvm.io | bash
-s
stable
curl
-sL
get.rvm.io | bash
-s
--
--version
1.15.7
source
$RUBY_DIR
/scripts/rvm
# skip the intro
LESS
=
"-E"
rvm install
$RUBY_VER
if
[[
$systempkgs
]]
;
then
virtualenv
--system-site-packages
"
$PYTHON_DIR
"
else
# default behavior for virtualenv>1.7 is
# --no-site-packages
virtualenv
"
$PYTHON_DIR
"
fi
source
$PYTHON_DIR
/bin/activate
output
"Installing gem bundler"
gem install bundler
output
"Installing ruby packages"
...
...
@@ -287,6 +283,16 @@ cd $BASE/mitx || true
bundle install
cd
$BASE
if
[[
$systempkgs
]]
;
then
virtualenv
--system-site-packages
"
$PYTHON_DIR
"
else
# default behavior for virtualenv>1.7 is
# --no-site-packages
virtualenv
"
$PYTHON_DIR
"
fi
# change to mitx python virtualenv
source
$PYTHON_DIR
/bin/activate
if
[[
-n
$compile
]]
;
then
output
"Downloading numpy and scipy"
...
...
@@ -305,6 +311,19 @@ if [[ -n $compile ]]; then
rm
-rf
numpy-
${
NUMPY_VER
}
scipy-
${
SCIPY_VER
}
fi
case
`
uname
-s
`
in
Darwin
)
# on mac os x get the latest distribute and pip
curl http://python-distribute.org/distribute_setup.py | python
pip install
-U
pip
# need latest pytz before compiling numpy and scipy
pip install
-U
pytz
pip install numpy
# fixes problem with scipy on 10.8
pip install
-e
git+https://github.com/scipy/scipy#egg
=
scipy-dev
;;
esac
output
"Installing MITx pre-requirements"
pip install
-r
mitx/pre-requirements.txt
# Need to be in the mitx dir to get the paths to local modules right
...
...
@@ -354,4 +373,3 @@ cat<<END
END
exit
0
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