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
8239f0e7
Commit
8239f0e7
authored
Jun 18, 2014
by
Christine Lytwynec
Committed by
Andy Armstrong
Jun 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop update_assets commands from being called extra times
parent
a6972c99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
pavelib/assets.py
+4
-1
pavelib/prereqs.py
+9
-12
No files found.
pavelib/assets.py
View file @
8239f0e7
...
@@ -192,7 +192,10 @@ def watch_assets(options):
...
@@ -192,7 +192,10 @@ def watch_assets(options):
@task
@task
@needs
(
'pavelib.prereqs.install_asset_prereqs'
)
@needs
(
'pavelib.prereqs.install_ruby_prereqs'
,
'pavelib.prereqs.install_node_prereqs'
,
)
@consume_args
@consume_args
def
update_assets
(
args
):
def
update_assets
(
args
):
"""
"""
...
...
pavelib/prereqs.py
View file @
8239f0e7
...
@@ -121,6 +121,9 @@ def install_ruby_prereqs():
...
@@ -121,6 +121,9 @@ def install_ruby_prereqs():
"""
"""
Installs Ruby prereqs
Installs Ruby prereqs
"""
"""
if
os
.
environ
.
get
(
"NO_PREREQ_INSTALL"
,
False
):
return
prereq_cache
(
"Ruby prereqs"
,
[
"Gemfile"
],
ruby_prereqs_installation
)
prereq_cache
(
"Ruby prereqs"
,
[
"Gemfile"
],
ruby_prereqs_installation
)
...
@@ -129,6 +132,9 @@ def install_node_prereqs():
...
@@ -129,6 +132,9 @@ def install_node_prereqs():
"""
"""
Installs Node prerequisites
Installs Node prerequisites
"""
"""
if
os
.
environ
.
get
(
"NO_PREREQ_INSTALL"
,
False
):
return
prereq_cache
(
"Node prereqs"
,
[
"package.json"
],
node_prereqs_installation
)
prereq_cache
(
"Node prereqs"
,
[
"package.json"
],
node_prereqs_installation
)
...
@@ -137,6 +143,9 @@ def install_python_prereqs():
...
@@ -137,6 +143,9 @@ def install_python_prereqs():
"""
"""
Installs Python prerequisites
Installs Python prerequisites
"""
"""
if
os
.
environ
.
get
(
"NO_PREREQ_INSTALL"
,
False
):
return
prereq_cache
(
"Python prereqs"
,
PYTHON_REQ_FILES
+
[
sysconfig
.
get_python_lib
()],
python_prereqs_installation
)
prereq_cache
(
"Python prereqs"
,
PYTHON_REQ_FILES
+
[
sysconfig
.
get_python_lib
()],
python_prereqs_installation
)
...
@@ -151,15 +160,3 @@ def install_prereqs():
...
@@ -151,15 +160,3 @@ def install_prereqs():
install_ruby_prereqs
()
install_ruby_prereqs
()
install_node_prereqs
()
install_node_prereqs
()
install_python_prereqs
()
install_python_prereqs
()
@task
def
install_asset_prereqs
():
"""
Installs Ruby and Node
"""
if
os
.
environ
.
get
(
"NO_PREREQ_INSTALL"
,
False
):
return
install_ruby_prereqs
()
install_node_prereqs
()
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