Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 53 lines (42 sloc) 1.457 kB
import os
import subprocess
import re
try:
from setuptools import setup, find_packages
from setuptools.dist import Distribution
except ImportError:
from distutils.core import setup, Distribution
w = os.walk('evserver')
find_packages = lambda:[r.replace('/','.') for r, d, _ in w if '.' not in r]
version = "0.10"
try:
proc = subprocess.Popen(["svn", "info"], stdout=subprocess.PIPE)
svn = proc.stdout.read()
rev = int(re.compile(r"Revision: ([0-9]*)").findall(svn)[0])
version = "%s-r%s" % (version, rev)
except Exception:
pass
import evserver.main
lev = evserver.main.get_libevent_version('evserver/%s' % evserver.main.libeventbin).replace('-','_').replace('.','_')
if lev:
version += '_libevent_%s' % lev
class MyDist(Distribution):
def has_ext_modules(self):
return True
setup(
name="evserver",
description = "EvServer - Asynchronous WSGI http server",
version = version,
keywords = "wsgi awsgi django asynchronous libevent",
author = "Marek Majkowski",
url = "http://code.google.com/p/evserver/wiki/Documentation",
license = "BSD",
package_data = {'': ['evserver', '*.cfg', '*.so', '*.dylib', '*.dll',
'*.js', '*.html', 'README', '*.sh']},
packages = find_packages(),
package_dir = {'':"."},
entry_points = {
'console_scripts': ['evserver = evserver.main:egg_entry_point'],
},
distclass = MyDist,
)
Jump to Line
Something went wrong with that request. Please try again.