Skip to content

Commit 6a38e27

Browse files
committed
Fix RST errors and add PROJ_LIB note
1 parent 72e4423 commit 6a38e27

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

mapscript/python/README.rst

+13-7
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ Installation
5555
------------
5656

5757
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.
6059

61-
.. code-block::
60+
.. code-block:: bat
6261
6362
SET PATH=C:\MapServer\bin;%PATH%
6463
@@ -70,19 +69,19 @@ When using these packages the MapServer path will be similar to `C:\release-1911
7069

7170
Prior to installing mapscript it is recommended to update pip to the latest version with the following command:
7271

73-
.. code-block::
72+
.. code-block:: bat
7473
7574
python -m pip install --upgrade pip
7675
7776
If there are binary wheels available for your system, mapscript can be installed using:
7877

79-
.. code-block::
78+
.. code-block:: bat
8079
8180
pip install mapscript
8281
8382
If you already have mapscript installed and wish to upgrade it to a newer version you can use:
8483

85-
.. code-block::
84+
.. code-block:: bat
8685
8786
pip install mapscript --upgrade
8887
@@ -195,7 +194,14 @@ The mapscript module includes a test suite and a small sample dataset to check t
195194
196195
pip install pytest
197196
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:
199205

200206
.. code-block:: bat
201207

0 commit comments

Comments
 (0)