Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
mopemope committed Oct 2, 2012
1 parent 01bce9e commit f815a5f
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 42 deletions.
2 changes: 1 addition & 1 deletion meinheld/msocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""
import sys
def is_py3():
return sys.hexversion >= 0x3000000
return sys.hexversion >= 0x03000000

__implements__ = ['getaddrinfo',
'gethostbyname',
Expand Down
126 changes: 85 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,46 +74,90 @@ def get_sources(path, ignore_files):
#TODO set python include dirs
include_dirs=[]

setup(name='meinheld',
version="0.5",
description="High performance asynchronous Python WSGI Web Server",
long_description=read('README.rst'),
author='yutaka matsubara',
author_email='yutaka.matsubara@gmail.com',
url='http://meinheld.org',
license='BSD',
platforms='Linux, BSD, Darwin',
packages= ['meinheld'],
install_requires=install_requires,

entry_points="""
[gunicorn.workers]
gunicorn_worker=meinheld.gmeinheld:MeinheldWorker
""",
ext_modules = [
Extension('meinheld.server',
sources=sources,
include_dirs=include_dirs,
library_dirs=library_dirs,
# libraries=["profiler"],
# extra_compile_args=[""],
define_macros=define_macros
)],

classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'
],
)
if sys.hexversion >= 0x03030000:
setup(name='meinheld',
version="0.5",
description="High performance asynchronous Python WSGI Web Server",
long_description=read('README.rst'),
author='yutaka matsubara',
author_email='yutaka.matsubara@gmail.com',
url='http://meinheld.org',
license='BSD',
platforms='Linux, BSD, Darwin',
packages= ['meinheld'],
requires=["greeenlet (==0.4.0)"],

# entry_points="""

# [gunicorn.workers]
# gunicorn_worker=meinheld.gmeinheld:MeinheldWorker
# """,
ext_modules = [
Extension('meinheld.server',
sources=sources,
include_dirs=include_dirs,
library_dirs=library_dirs,
# libraries=["profiler"],
# extra_compile_args=[""],
define_macros=define_macros
)],

classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'
],
)

else:

setup(name='meinheld',
version="0.5",
description="High performance asynchronous Python WSGI Web Server",
long_description=read('README.rst'),
author='yutaka matsubara',
author_email='yutaka.matsubara@gmail.com',
url='http://meinheld.org',
license='BSD',
platforms='Linux, BSD, Darwin',
packages= ['meinheld'],
install_requires=install_requires,

entry_points="""
[gunicorn.workers]
gunicorn_worker=meinheld.gmeinheld:MeinheldWorker
""",
ext_modules = [
Extension('meinheld.server',
sources=sources,
include_dirs=include_dirs,
library_dirs=library_dirs,
# libraries=["profiler"],
# extra_compile_args=[""],
define_macros=define_macros
)],

classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'
],
)

0 comments on commit f815a5f

Please sign in to comment.