Wednesday, September 17, 2014

How to install setuptools under a local python

Supposed you have a local python, which is used to built other staff. For example, buildozer will have this


src/.buildozer/android/platform/python-for-android/build/hostpython/Python-2.7.2

And this Python is missing setuptools for compiling, you need to install it under this Python. 

manual download the development version of setuptools from https://pypi.python.org/pypi/setuptools#downloads
move this setuptools into the Python directory
cd into the setuptools direcotry
find the executable for this python

run ../python.exe[where your python executable is] setup.py install

this will install setuptools under the local python. 

Note using easy_install setup tools only installs in your system not the local Python.  

No comments: