diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -424,6 +424,8 @@ PYTHON_VERSION = get_python_config('VERSION') if os.name == 'nt': if hasattr(sys, 'real_prefix'): PYTHON_LIBDIR = sys.real_prefix + elif hasattr(sys, 'base_prefix'): + PYTHON_LIBDIR = sys.base_prefix else: PYTHON_LIBDIR = get_python_config('BINDIR') @@ -542,11 +544,16 @@ if os.name != 'nt': # Now finally run distutils. +package_name = 'mod_wsgi' long_description = open('README.rst').read() standalone = os.path.exists('pyproject.toml') -setup(name = standalone and 'mod_wsgi-standalone' or 'mod_wsgi', +if standalone: + package_name = 'mod_wsgi-standalone' + long_description = open('README-standalone.rst').read() + +setup(name = package_name, version = _version(), description = 'Installer for Apache/mod_wsgi.', long_description = long_description, |