Changes between Version 5 and Version 6 of ExternalPythonPackages


Ignore:
Timestamp:
Nov 2, 2015, 10:49:40 AM (9 years ago)
Author:
maphew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExternalPythonPackages

    v5 v6  
    55Important note: it's up to you to ensure the 3rd party packages can play nice with osgeo4w. If things get too messed up because of conflicting versions or something you may need to remove everything and install from scratch.
    66
    7 == Install with pip ==
     7== Install pip ==
    88''[http://www.pip-installer.org/ pip]'' is a tool for installing and managing Python packages, such as those found in the [http://pypi.python.org/pypi Python Package Index]. It’s a replacement for `easy_install`.
    99
    1010If you don't have it already, install [wiki:pkg-curl], then from the Osgeo4w shell:
    1111
    12 Install the `distribute` prerequisite and then `pip`:
     12Securely download `get-pip` install script:
    1313{{{
    14 curl http://python-distribute.org/distribute_setup.py | python
    15 curl --insecure https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python
     14curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    1615}}}
    1716
    18 Create a batch file to run pip:
     17If you get ''"error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"'' see #474.
     18
     19Install pip:
    1920{{{
    20 copy con %osgeo4w_root%\bin\pip.bat
    21 %pythonhome%\Scripts\pip.exe %*[ctrl-Z]
     21python get-pip.py
    2222}}}
     23
    2324(recipe adapted from [http://www.pip-installer.org/en/latest/installing.html pip install instructions])
     25
     26=== Install 3rd party program or module ===
    2427
    2528Now you can install (or remove) what you're really after 
     
    3235
    3336It's a good idea to run from a temp or scratch directory because a failed build will leave files behind (and a great many of the packages fail).
    34 
    35 
    3637== Use standard Windows installers ==
    3738If you make Osgeo4W python the system default, you can use the usual windows installers (foobar-setup.exe, .msi). Details for how to do that are at ticket:114, an experimental python program to add and remove o4w python from the Windows registry.