-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
[egg_info] | |||
tag_build = .dev | |||
tag_svn_revision = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,31 +1,43 @@ | |||
# copy these lines to a file named: setup.py | from distutils.core import setup, find_packages, Extension | ||
# To build and install the elemlist module you need the following | |||
# setup.py file that uses the distutils: | |||
from distutils.core import setup, Extension | |||
import os | import os | ||
import os.path | |||
import sys | import sys | ||
|
|
||
setup (name = "fapws3", | def read_file(name): | ||
version = "0.1", | return open(os.path.join(os.path.dirname(__file__),name)).read() | ||
maintainer = "William", |
|
||
maintainer_email = "william.os4y@gmail.com", | readme = read_file('README') | ||
description = "FAPWS Python module", |
|
||
packages= ['fapws','fapws/contrib'], | setup(name='fapws3', | ||
version="0.1", | |||
description="Fast Asynchronous Python Web Server", | |||
long_description=readme, | |||
classifiers=['Development Status :: 4 - Beta','Environment :: Web Environment','License :: OSI Approved :: GNU General Public License (GPL)','Programming Language :: C','Programming Language :: Python','Topic :: Internet :: WWW/HTTP :: HTTP Servers','Topic :: Internet :: WWW/HTTP :: WSGI :: Server'], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | |||
keywords='', | |||
author='William', | |||
author_email='william.os4y@gmail.com', | |||
url='http://william-os4y.livejournal.com/', | |||
license='GPL', | |||
include_package_data=True, | |||
zip_safe=False, | |||
install_requires=[ | |||
# -*- Extra requirements: -*- | |||
], | |||
entry_points=""" | |||
# -*- Entry points: -*- | |||
""", | |||
|
|||
packages= find_packages(), | |||
ext_modules = [ | |||
Extension('fapws._evwsgi', | |||
sources=['fapws/_evwsgi.c'], | |||
#include_dirs=["/usr/include"], | |||
#library_dirs=["/usr/local/lib"], # add LD_RUN_PATH in your environment | |||
libraries=['ev'], | |||
#extra_compile_args=["-ggdb"], | |||
#define_macros=[("DEBUG", "1")], | |||
) | |||
] | |||
) | |||
|
|
||
ext_modules = [ | |||
Extension('fapws._evwsgi', | |||
sources=['fapws/_evwsgi.c'], | |||
# I'm on an archlinux ;-) | |||
# Here I'm pointing to the direcoty where libevent has been build | |||
# In this directory wi can find sources and compiled objects (as after a "./configure; make") | |||
#include_dirs=["/usr/include"], | |||
#library_dirs=["/usr/local/lib"], # add LD_RUN_PATH in your environment | |||
libraries=['ev'], | |||
#extra_compile_args=["-ggdb"], | |||
#define_macros=[("DEBUG", "1")], | |||
) | |||
] | |||
) | |||
|
|
||
# end of file: setup.py | # end of file: setup.py |