The Python installation in the WW27 build doesn't contain distutils. This makes it difficult to install new python packages as every setup.py script depends on it and you can't install pip, easy_install, etc.
Has anyone successfully gotten around this? And could future builds include distutils in the Python installation to make this simpler for the inexperienced? 🙂
I installed pip right away, but that required a few missing python modules which you only get if you build your image yourself. They're built by default, so I'm not sure why they aren't installed right away (just some part of those).
I was a bit in a hurry so I haven't written down which modules I installed.
I'm going to build a new image based on WW31 release tonight, after that I should be able to repeat that and share the list of necessary modules.
So here goes the list of Python packages needed to install pip using standard http://pip.readthedocs.org/en/latest/installing.html get-pip.py:
python-numbers_2.7.3-r0.3_core2-32.ipk - just added, I've updated the post. Without this one, pip was always failing with "setuptools must be installed to install from a source distribution" even though setuptools are already there.
+ many modules require these to install
And only after that you'll be able to do this:
root@myed1:~# python get-pip.py
Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloaded
Downloading setuptools-5.4.2-py2.py3-none-any.whl (528kB): 528kB downloaded
Installing collected packages: pip, setuptools
Successfully installed pip setuptools
root@myed1:~# pip --version
pip 1.5.6 from /usr/lib/python2.7/site-packages (python 2.7)
All in all, I'd really recommend just to install all the modules that are produced by the build right away. That's "batteries included", right? Or at least provide a package repo.
Hi AlexT, I was hoping you could include ftdi_sio in a future build as well. I remember using your repo for Galileo (which had ftdi_sio), and it was very helpful. Or, is there some way I could get access to kernel headers to compile it myself?
They are in edison-src/build/tmp/deploy/ipk/core2-32 (assuming the default dir layout).
EDIT: By the way - here are all the modules less a couple of huge staticdev ones and python-dbg and python-tests, which are irrelevant.
You can install them by copying to the board and running "opkg install ". I've tried listing the modules necessary for pip in the order of dependency, so you should be able to install them just one by one.
Hey Guys I installed all the modules but still having this
Could not find any downloads that satisfy the requirement pip
No distributions at all found for pip
Storing debug log for failure in /home/root/.pip/pip.log
seems yocto doesn't support HTTPS?
pip is working now, the biggest issue for us right now is scipy, always have some problem during compiling, do you have any idea or has anyone done this before?