File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,9 @@ Installation
55
55
------------
56
56
57
57
To use mapscript you will need to add the MapServer binaries to your system path.
58
- On Windows you can use the following, replacing ``C:\MapServer\bin `` with the location of your MapServer binaries
59
- (see also `MapServer Versions `_).
58
+ On Windows you can use the following, replacing ``C:\MapServer\bin `` with the location of your MapServer binaries.
60
59
61
- .. code-block ::
60
+ .. code-block :: bat
62
61
63
62
SET PATH = C:\MapServer\bin;%PATH%
64
63
@@ -70,19 +69,19 @@ When using these packages the MapServer path will be similar to `C:\release-1911
70
69
71
70
Prior to installing mapscript it is recommended to update pip to the latest version with the following command:
72
71
73
- .. code-block ::
72
+ .. code-block :: bat
74
73
75
74
python -m pip install --upgrade pip
76
75
77
76
If there are binary wheels available for your system, mapscript can be installed using:
78
77
79
- .. code-block ::
78
+ .. code-block :: bat
80
79
81
80
pip install mapscript
82
81
83
82
If you already have mapscript installed and wish to upgrade it to a newer version you can use:
84
83
85
- .. code-block ::
84
+ .. code-block :: bat
86
85
87
86
pip install mapscript --upgrade
88
87
@@ -195,7 +194,14 @@ The mapscript module includes a test suite and a small sample dataset to check t
195
194
196
195
pip install pytest
197
196
198
- Next run the command below to run the test suite:
197
+ Make sure the MapServer binaries are on the system path, and that the PROJ_LIB variable has been set as this is required for many of the tests.
198
+
199
+ .. code-block :: bat
200
+
201
+ SET PATH = C:\release-1911-x64-gdal-2-3-mapserver-7-2\bin;%PATH%
202
+ SET PROJ_LIB = C:\release-1911-x64-gdal-2-3-mapserver-7-2\bin\proj\SHARE
203
+
204
+ Finally run the command below to run the test suite:
199
205
200
206
.. code-block :: bat
201
207
You can’t perform that action at this time.
0 commit comments