Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Update appveyor to python3 #816

Merged
merged 1 commit into from
Jan 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ environment:
matrix:
# For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python36"

install:
# We need wheel installed to build wheels
Expand All @@ -15,21 +15,17 @@ install:
#- "activate test-environment"
#- "conda install pycurl"
- "%PYTHON%\\python.exe -m pip install wheel"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/numpy-1.13.1+mkl-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install numpy-1.13.1+mkl-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/scipy-0.19.1-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install scipy-0.19.1-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/scikit_image-0.13.0-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install scikit_image-0.13.0-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/GDAL-2.1.3-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install GDAL-2.1.3-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/Shapely-1.5.17-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install Shapely-1.5.17-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-binaries/raw/master/pyproj-1.9.5.1-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install pyproj-1.9.5.1-cp27-cp27m-win32.whl"
- "appveyor DownloadFile https://download.lfd.uci.edu/pythonlibs/t7epjj8p/pycurl-7.43.0.3-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install pycurl-7.43.0.3-cp27-cp27m-win32.whl"
- "%PYTHON%\\python.exe -m pip install matplotlib pytest"
- "appveyor DownloadFile https://download.lfd.uci.edu/pythonlibs/q4hpdf1k/numpy-1.18.1+mkl-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install numpy-1.18.1+mkl-cp36-cp36m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/pycurl-7.43.0.4-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install pycurl-7.43.0.4-cp36-cp36m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/Shapely-1.6.4.post2-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install Shapely-1.6.4.post2-cp36-cp36m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/scikit_image-0.16.2-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install scikit_image-0.16.2-cp36-cp36m-win32.whl"
- "appveyor DownloadFile https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/scipy-1.4.1-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install scipy-1.4.1-cp36-cp36m-win32.whl"
- "%PYTHON%\\python.exe -m pip install matplotlib pytest vcrpy mock moto"
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"

build: off
Expand Down
26 changes: 14 additions & 12 deletions install_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,41 @@ Install Python
--------------

Open up a web browser and paste in this URL to download python:
```https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi```
```https://www.python.org/ftp/python/3.7.5/python-3.7.5-amd64.exe```

Open up the download and make sure you check the box "add python.exe to path".

Install Other Dependencies
--------------

Install gdal:
Install numpy:

Open windows powershell (not the cmd utility):
```
pip install https://download.lfd.uci.edu/pythonlibs/q4hpdf1k/numpy-1.18.1+mkl-cp37-cp37m-win_amd64.whl
```

Install pycurl:

```
curl -outf GDAL-2.1.3-cp27-cp27m-win32.whl https://github.com/DigitalGlobe/gbdxtools-windows-binaries/blob/master/GDAL-2.1.3-cp27-cp27m-win32.whl?raw=true
pip install .\GDAL-2.1.3-cp27-cp27m-win32.whl
pip install https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/pycurl-7.43.0.4-cp37-cp37m-win_amd64.whl
```

Install Shapely:

```
curl -outf Shapely-1.5.17-cp27-cp27m-win32.whl https://github.com/DigitalGlobe/gbdxtools-windows-binaries/blob/master/Shapely-1.5.17-cp27-cp27m-win32.whl?raw=true
pip install .\Shapely-1.5.17-cp27-cp27m-win32.whl
pip install https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl
```

Install pyproj:
Install scikit_image:

```
curl -outf pyproj-1.9.5.1-cp27-cp27m-win32.whl https://github.com/DigitalGlobe/gbdxtools-windows-binaries/blob/master/pyproj-1.9.5.1-cp27-cp27m-win32.whl?raw=true
pip install .\pyproj-1.9.5.1-cp27-cp27m-win32.whl
pip install https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/scikit_image-0.16.2-cp37-cp37m-win_amd64.whl
```

Install matplotlib:
Install scipy:

```
pip install matplotlib
pip install https://github.com/DigitalGlobe/gbdxtools-windows-dependencies/raw/master/scipy-1.4.1-cp37-cp37m-win_amd64.whl
```

Install gbdxtools
Expand Down