Commit 325fc3d3 by XuYS

修改pip依赖的安装源

parent 6985644f
......@@ -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.
......
......@@ -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))
......
......@@ -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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment