Changes between Initial Version and Version 1 of MakeLocalPythonRepo


Ignore:
Timestamp:
09/15/14 15:58:03 (10 years ago)
Author:
rrhain@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MakeLocalPythonRepo

    v1 v1  
     1
     2To create packages necessary for pip installation.
     3
     4  1.  To get the dependencies of a python package to install, the pip version needs to be 1.1 or greater, pip --version
     5
     6  2.  We generally have an issue with that because the pip that gets installed is version 1.0.  Refer to this page: http://stackoverflow.com/questions/7300321/how-to-use-pythons-pip-to-download-and-keep-the-zipped-files-for-a-package
     7
     8  3.  To get the packages and dependencies with pip 1.1 or greater: 
     9
     10{{{
     11
     12       mkdir ARL-PYTHON
     13       pip install --download ./ARL-PYTHON celery
     14
     15}}}
     16 
     17   4.  Once all the tar files are in that directory, testing of what order the files need to be installed needs to be done.  It is best to try this in an Ubuntu VM, since the pip installed on the offline
     18site will be pip 1.0.
     19
     20   5.  So for flask, this is the order:
     21
     22{{{
     23cd /home/gram
     24
     25tar xvzf ARL-PYTHON.tgz  (should get an ARL-PYTHON directory)
     26
     27pip install ./ARL-PYTHON/Werkzeug-0.9.6.tar.gz
     28pip install ./ARL-PYTHON/itsdangerous-0.24.tar.gz
     29pip install ./ARL-PYTHON/Jinja2-2.7.3.tar.gz
     30pip install ./ARL-PYTHON/Flask-0.10.1.tar.gz
     31
     32}}}