Skip to content

Commit 61359e6

Browse files
Merge branch 'release/4.7.1'
2 parents 2b51ee9 + 3ffdcec commit 61359e6

37 files changed

+89
-36
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include configure
33
include LICENSE
44
include Makefile.in
55
include README.rst
6+
include README-standalone.rst
67
include CREDITS.rst
78
include src/server/*.h
89
include src/server/*.c

README-standalone.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Overview
2+
--------
3+
4+
The mod_wsgi package provides an Apache module that implements a WSGI
5+
compliant interface for hosting Python based web applications on top of the
6+
Apache web server.
7+
8+
The primary package for mod_wsgi is available on the Python package index
9+
(PyPi) as ``mod_wsgi``. That package assumes that you have a suitable
10+
version of Apache pre-installed on your target system, and if you don't,
11+
installation of the package will fail.
12+
13+
If you are on a UNIX like system (Linux, macOS) and need a version of
14+
Apache to be installed for you, you can use the ``mod_wsgi-standalone``
15+
package on PyPi instead. When installing the ``mod_wsgi-standalone``
16+
package it will first trigger the installation of the ``mod_wsgi-httpd``
17+
package, which will result in a version of Apache being installed as
18+
part of your Python installation. Next the ``mod_wsgi`` package will be
19+
installed, with it using the version of Apache installed by the
20+
``mod_wsgi-httpd`` package rather than any system package for Apache.
21+
22+
Note that this method of installation is only suitable for where you want
23+
to use ``mod_wsgi-expres``. It cannot be used to build mod_wsgi for use
24+
with your system Apache installation. This installation method will also
25+
not work on Windows.
26+
27+
When installing mod_wsgi using this method, except that you will install
28+
the ``mod_wsgi-standalone`` package instead of the ``mod_wsgi`` package,
29+
you should follow installation and usage instructions outlined on the
30+
PyPi page for the ``mod_wsgi`` package.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl vim: set sw=4 expandtab :
22
dnl
3-
dnl Copyright 2007-2018 GRAHAM DUMPLETON
3+
dnl Copyright 2007-2020 GRAHAM DUMPLETON
44
dnl
55
dnl Licensed under the Apache License, Version 2.0 (the "License");
66
dnl you may not use this file except in compliance with the License.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# General information about the project.
4343
project = u'mod_wsgi'
44-
copyright = u'2007-2019, Graham Dumpleton'
44+
copyright = u'2007-2020, Graham Dumpleton'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the

docs/configuration-directives/WSGIChunkedRequest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ block size passed as argument and do this until ``read()`` returns an empty
2929
string.
3030

3131
Because both calling methods are not allowed under WSGI specification, in
32-
using these your code will not technically be portable to other WSGI hosting
32+
using these, your code will not technically be portable to other WSGI hosting
3333
mechanisms, although if those other WSGI servers support it, you will be
3434
okay.
3535

@@ -43,6 +43,6 @@ request WSGI ``environ`` dictionary. When this is done the web frameworks
4343
will always read all available input and ignore ``CONTENT_LENGTH``.
4444

4545
Because mod_wsgi guarantees that an empty string is returned when all input
46-
is exhausted, it will will always set this flag.
46+
is exhausted, it will always set this flag.
4747

4848
It is known that Flask/Werkzeug supports the ``wsgi.input_terminated`` flag.

docs/release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release Notes
66
:maxdepth: 2
77

88
release-notes/version-4.7.0
9+
release-notes/version-4.7.1
910

1011
release-notes/version-4.6.8
1112
release-notes/version-4.6.7
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============
2+
Version 4.7.1
3+
=============
4+
5+
Version 4.7.1 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.7.1
8+
9+
Bugs Fixed
10+
----------
11+
12+
* Fix up installation on Windows into a virtual environment when
13+
using latest ``virtualenv`` version, or recent Python versions
14+
with the bundled ``venv`` module for creating virtual environments.

package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eo pipefail
44

5-
rm -rf dist
5+
rm -rf build dist
66

77
rm -f pyproject.toml
88

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ def get_apu_includes():
424424
if os.name == 'nt':
425425
if hasattr(sys, 'real_prefix'):
426426
PYTHON_LIBDIR = sys.real_prefix
427+
elif hasattr(sys, 'base_prefix'):
428+
PYTHON_LIBDIR = sys.base_prefix
427429
else:
428430
PYTHON_LIBDIR = get_python_config('BINDIR')
429431

@@ -542,11 +544,16 @@ def _version():
542544

543545
# Now finally run distutils.
544546

547+
package_name = 'mod_wsgi'
545548
long_description = open('README.rst').read()
546549

547550
standalone = os.path.exists('pyproject.toml')
548551

549-
setup(name = standalone and 'mod_wsgi-standalone' or 'mod_wsgi',
552+
if standalone:
553+
package_name = 'mod_wsgi-standalone'
554+
long_description = open('README-standalone.rst').read()
555+
556+
setup(name = package_name,
550557
version = _version(),
551558
description = 'Installer for Apache/mod_wsgi.',
552559
long_description = long_description,

src/server/mod_wsgi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ------------------------------------------------------------------------- */
22

33
/*
4-
* Copyright 2007-2019 GRAHAM DUMPLETON
4+
* Copyright 2007-2020 GRAHAM DUMPLETON
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)