Skip to content

Commit 75d7686

Browse files
committed
update Python / pip interpreters to be py3k
1 parent 5318fbf commit 75d7686

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

csw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python -u
1+
#!/usr/bin/python3 -u
22
# -*- coding: utf-8 -*-
33
# =================================================================
44
#

docs/installation.rst

+11-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Installation
66
System Requirements
77
-------------------
88

9-
pycsw is written in `Python <http://python.org>`_, and works with (tested) Python 3. Python 2 is no longer supported.
9+
pycsw is written in `Python <https://python.org>`_, and works with (tested) Python 3. Python 2 is no longer supported.
1010

1111
pycsw requires the following Python supporting libraries:
1212

@@ -40,14 +40,14 @@ The 4 minute install:
4040
4141
$ virtualenv pycsw && cd pycsw && . bin/activate
4242
$ git clone https://github.com/geopython/pycsw.git && cd pycsw
43-
$ pip install -e . && pip install -r requirements-standalone.txt
43+
$ pip3 install -e . && pip3 install -r requirements-standalone.txt
4444
$ cp default-sample.cfg default.cfg
4545
$ vi default.cfg
4646
# adjust paths in
4747
# - server.home
4848
# - repository.database
4949
# set server.url to http://localhost:8000/
50-
$ python pycsw/wsgi.py
50+
$ python3 pycsw/wsgi.py
5151
$ curl http://localhost:8000/?service=CSW&version=2.0.2&request=GetCapabilities
5252
5353
@@ -79,8 +79,8 @@ The Clean and Proper Way
7979
.. code-block:: bash
8080
8181
$ git clone git://github.com/geopython/pycsw.git
82-
$ python setup.py build
83-
$ python setup.py install
82+
$ python3 setup.py build
83+
$ python3 setup.py install
8484
8585
At this point, pycsw is installed as a library and requires a CGI ``csw.py``
8686
or WSGI ``pycsw/wsgi.py`` script to be served into your web server environment
@@ -96,7 +96,7 @@ Installing from the Python Package Index (PyPi)
9696
# easy_install or pip will do the trick
9797
$ easy_install pycsw
9898
# or
99-
$ pip install pycsw
99+
$ pip3 install pycsw
100100
101101
.. _opensuse:
102102

@@ -151,10 +151,13 @@ For Windows installs, change the first line of ``csw.py`` to:
151151

152152
.. code-block:: python
153153
154-
#!/Python27/python -u
154+
#!/Users/USERNAME/AppData/Local/Programs/Python/Python36/python -u
155155
156156
.. note::
157157
The use of ``-u`` is required to properly output gzip-compressed responses.
158+
159+
.. note::
160+
``USERNAME`` should match your username, and the Python version should match with your install (e.g. ``Python36``).
158161

159162
.. Tip::
160163

@@ -208,7 +211,7 @@ or use the `WSGI reference implementation`_:
208211

209212
.. code-block:: bash
210213
211-
$ python ./pycsw/wsgi.py
214+
$ python3 ./pycsw/wsgi.py
212215
Serving on port 8000...
213216
214217
which will publish pycsw to ``http://localhost:8000/``

pavement.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def gen_tests_html():
8888
with pushd('tests'):
8989
# ensure manager testsuite is writeable
9090
os.chmod(os.path.join('functionaltests', 'suites', 'manager', 'data'), 0o777)
91-
sh('python gen_html.py > index.html')
91+
sh('python3 gen_html.py > index.html')
9292

9393

9494
@task

pycsw/wsgi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#
4848
# or invoke this script from the command line:
4949
#
50-
# $ python ./pycsw/wsgi.py
50+
# $ python3 ./pycsw/wsgi.py
5151
#
5252
# which will publish pycsw to:
5353
#

0 commit comments

Comments
 (0)