sudo pip install kpm -U
The only thing is the version of python that the kubernetes ansible scripts use contains a version of pypy that is needs to be upgraded (2.4)remember python is at
/opt/bin/python
first must fix the path:
export PATH=$PATH:/opt/bin/python
Now CoreOS has no yum or apt-get.... you need to use ansible to bootstrap the correct software
- a trick to install make not sure if its needed:
docker run -ti --rm -v /opt/bin:/out ubuntu:14.04 /bin/bash -c "apt-get update && apt-get -y install make && cp /usr/bin/make /out/make"
Pip is not installed:
wget https://bootstrap.pypa.io/get-pip.py - then execute it
now run
requirements_dev.txt is inside the kpm source that you download from github:
https://github.com/coreos/kpm
python -m pip install -r requirements_dev.txt
this error comes up
File "/tmp/pip-build-zPof0C/cryptography/setup.py", line 54, in
"cryptography 1.0 is not compatible with PyPy < 2.6. Please "
RuntimeError: cryptography 1.0 is not compatible with PyPy < 2.6. Please upgrade PyPy to use this library.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zPof0C/cryptography/
I did search in src code for contrib-master\ansible\roles\pre-ansible\defaults
main.yml has this:
pypy_version: 2.4.0
Plan is to change this to 2.6 and attempt the anisble install over again.
No comments:
Post a Comment