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
325fc3d3
Commit
325fc3d3
authored
Feb 25, 2018
by
XuYS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pip依赖的安装源
parent
6985644f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
circle.yml
+10
-10
pavelib/prereqs.py
+1
-1
requirements/edx/development.txt
+1
-1
scripts/release.py
+1
-1
No files found.
circle.yml
View file @
325fc3d3
...
...
@@ -11,27 +11,27 @@ dependencies:
override
:
-
npm install
-
pip install setuptools
-
pip install --exists-action w -r requirements/edx/paver.txt
-
pip install
-i https://pypi.tuna.tsinghua.edu.cn/simple
setuptools
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/paver.txt
# Mirror what paver install_prereqs does.
# After a successful build, CircleCI will
# cache the virtualenv at that state, so that
# the next build will not need to install them
# from scratch again.
-
pip install --exists-action w -r requirements/edx/pre.txt
-
pip install --exists-action w -r requirements/edx/github.txt
-
pip install --exists-action w -r requirements/edx/local.txt
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/pre.txt
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/github.txt
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/local.txt
# HACK: within base.txt stevedore had a
# dependency on a version range of pbr.
# Install a version which falls within that range.
-
pip install --exists-action w pbr==0.9.0
-
pip install --exists-action w -r requirements/edx/base.txt
-
pip install --exists-action w -r requirements/edx/paver.txt
-
if [ -e requirements/edx/post.txt ]; then pip install --exists-action w -r requirements/edx/post.txt ; fi
-
pip install
-i https://pypi.tuna.tsinghua.edu.cn/simple
--exists-action w pbr==0.9.0
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/base.txt
-
pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/paver.txt
-
if [ -e requirements/edx/post.txt ]; then pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
-exists-action w -r requirements/edx/post.txt ; fi
-
pip install coveralls==1.0
-
pip install
-i https://pypi.tuna.tsinghua.edu.cn/simple
coveralls==1.0
# Output the installed python packages to the console to help
# with troubleshooting any issues with python requirements.
...
...
pavelib/prereqs.py
View file @
325fc3d3
...
...
@@ -158,7 +158,7 @@ def python_prereqs_installation():
def
pip_install_req_file
(
req_file
):
"""Pip install the requirements file."""
pip_cmd
=
'pip install -q --disable-pip-version-check --exists-action w'
pip_cmd
=
'pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
q --disable-pip-version-check --exists-action w'
sh
(
"{pip_cmd} -r {req_file}"
.
format
(
pip_cmd
=
pip_cmd
,
req_file
=
req_file
))
...
...
requirements/edx/development.txt
View file @
325fc3d3
...
...
@@ -3,7 +3,7 @@
#
# These must be installed manually in your development environment using:
#
# pip install -r requirements/edx/development.txt
# pip install -
i https://pypi.tuna.tsinghua.edu.cn/simple -
r requirements/edx/development.txt
#
# Python libraries to install directly from github / PyPi
...
...
scripts/release.py
View file @
325fc3d3
...
...
@@ -23,7 +23,7 @@ try:
import
yaml
except
ImportError
:
print
(
"Error: missing dependencies! Please run this command to install them:"
)
print
(
"pip install path.py requests python-dateutil GitPython PyYAML"
)
print
(
"pip install
-i https://pypi.tuna.tsinghua.edu.cn/simple
path.py requests python-dateutil GitPython PyYAML"
)
sys
.
exit
(
1
)
try
:
...
...
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