Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 515560
Collapse All | Expand All

(-)a/setup.py (-3 / +16 lines)
Lines 5-16 Link Here
5
import os
5
import os
6
from setuptools import setup, find_packages, Command
6
from setuptools import setup, Command
7
import sys
7
import sys
8
from gunicorn import __version__
8
from gunicorn import __version__
9
ASYNCIO_COMPAT = sys.version_info >= (3, 3)
10
11
9
CLASSIFIERS = [
12
CLASSIFIERS = [
10
    'Development Status :: 4 - Beta',
13
    'Development Status :: 4 - Beta',
11
    'Environment :: Other Environment',
14
    'Environment :: Other Environment',
Lines 65-70 def run(self): Link Here
65
REQUIREMENTS = []
68
REQUIREMENTS = []
69
py_modules = []
70
71
for root, folders, files in os.walk('gunicorn'):
72
    for f in files:
73
        if f.endswith('.py') and (ASYNCIO_COMPAT or f != 'gaiohttp.py'):
74
            full = os.path.join(root, f[:-3])
75
            parts = full.split(os.path.sep)
76
            modname = '.'.join(parts)
77
            py_modules.append(modname)
78
79
66
setup(
80
setup(
67
    name = 'gunicorn',
81
    name = 'gunicorn',
68
    version = __version__,
82
    version = __version__,
Lines 78-84 def run(self): Link Here
78
    classifiers = CLASSIFIERS,
92
    classifiers = CLASSIFIERS,
79
    zip_safe = False,
93
    zip_safe = False,
80
    packages = find_packages(exclude=['examples', 'tests']),
94
    py_modules = py_modules,
81
    include_package_data = True,
95
    include_package_data = True,
82
    tests_require = tests_require,
96
    tests_require = tests_require,
83
-

Return to bug 515560