mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 23:18:24 +00:00
frooze pip at 9.0.3
This commit is contained in:
parent
a412ab402a
commit
4c13cb4289
@ -23,7 +23,7 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- cd ~
|
- cd ~
|
||||||
- sudo pip install --upgrade pip
|
- sudo pip install --upgrade pip==9.0.3
|
||||||
- sudo pip install -e ~/.bench
|
- sudo pip install -e ~/.bench
|
||||||
# - sudo python -m unittest bench.tests.test_setup_production.TestSetupProduction.test_setup_production_v6
|
# - sudo python -m unittest bench.tests.test_setup_production.TestSetupProduction.test_setup_production_v6
|
||||||
- sudo python -m unittest -v bench.tests.test_setup_production
|
- sudo python -m unittest -v bench.tests.test_setup_production
|
||||||
|
@ -158,7 +158,8 @@ def migrate_env(python, no_backup = False):
|
|||||||
), cwd = path)
|
), cwd = path)
|
||||||
|
|
||||||
pip = osp.join(pvenv, 'bin', 'pip')
|
pip = osp.join(pvenv, 'bin', 'pip')
|
||||||
exec_cmd('{pip} install --upgrade pip'.format(pip=pip))
|
# pip 10 seems to have a few problems associated with it, temporary freeze pip at 9.0.3
|
||||||
|
exec_cmd('{pip} install --upgrade pip==9.0.3'.format(pip=pip))
|
||||||
exec_cmd('{pip} install --upgrade setuptools'.format(pip=pip))
|
exec_cmd('{pip} install --upgrade setuptools'.format(pip=pip))
|
||||||
# TODO: Options
|
# TODO: Options
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ def setup_env(bench_path='.', python = 'python'):
|
|||||||
python = which(python, raise_err = True)
|
python = which(python, raise_err = True)
|
||||||
|
|
||||||
exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path)
|
exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path)
|
||||||
exec_cmd('./env/bin/pip -q install --upgrade pip', cwd=bench_path)
|
exec_cmd('./env/bin/pip -q install --upgrade pip==9.0.3', cwd=bench_path)
|
||||||
exec_cmd('./env/bin/pip -q install wheel', cwd=bench_path)
|
exec_cmd('./env/bin/pip -q install wheel', cwd=bench_path)
|
||||||
# exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench_path)
|
# exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench_path)
|
||||||
exec_cmd('./env/bin/pip -q install six', cwd=bench_path)
|
exec_cmd('./env/bin/pip -q install six', cwd=bench_path)
|
||||||
@ -408,8 +408,8 @@ def update_requirements(bench_path='.'):
|
|||||||
print('Updating Python libraries...')
|
print('Updating Python libraries...')
|
||||||
pip = os.path.join(bench_path, 'env', 'bin', 'pip')
|
pip = os.path.join(bench_path, 'env', 'bin', 'pip')
|
||||||
|
|
||||||
# upgrade pip to latest
|
# pip 10 seems to have a few problems associated with it, temporary freeze pip at 9.0.3
|
||||||
exec_cmd("{pip} install --upgrade pip".format(pip=pip))
|
exec_cmd("{pip} install --upgrade pip==9.0.3".format(pip=pip))
|
||||||
|
|
||||||
apps_dir = os.path.join(bench_path, 'apps')
|
apps_dir = os.path.join(bench_path, 'apps')
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ def install_bench(args):
|
|||||||
# secure pip installation
|
# secure pip installation
|
||||||
if find_executable('pip'):
|
if find_executable('pip'):
|
||||||
run_os_command({
|
run_os_command({
|
||||||
'pip': 'sudo pip install --upgrade setuptools pip'
|
'pip': 'sudo pip install --upgrade setuptools pip==9.0.3'
|
||||||
})
|
})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -51,7 +51,7 @@ def install_bench(args):
|
|||||||
|
|
||||||
if success:
|
if success:
|
||||||
run_os_command({
|
run_os_command({
|
||||||
'pip': 'sudo pip install --upgrade pip setuptools',
|
'pip': 'sudo pip install --upgrade pip==9.0.3 setuptools',
|
||||||
})
|
})
|
||||||
|
|
||||||
success = run_os_command({
|
success = run_os_command({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user