1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- setup.py 2005-12-15 07:41:42.000000000 +0100
+++ setup.py 2008-05-25 18:10:01.461135391 +0200
@@ -1,18 +1,12 @@
-#from distutils.core import setup, Extension
-from ez_setup import use_setuptools
-use_setuptools()
-from setuptools import setup, Extension
+#!/usr/bin/env python
+from distutils import core
+from distutils.extension import Extension
-c_ext = Extension("fcgi", ["fastcgi/pyfcgi.c"], libraries=["fcgi"],
- include_dirs=["/usr/local/include"],
- library_dirs=["/usr/local/lib"],
- #extra_link_args=["-s"],
- )
-
-setup(name="python-fastcgi",
+core.setup(
+ name="python-fastcgi",
version="1.1",
- description="Python wrapper for the Open Market FastCGI library",
+ description="Python wrapper for the Open Market FastCGI library.",
long_description="python-fastcgi is a lightweight wrapper around the Open Market FastCGI C Library/SDK. It includes threaded and forking WSGI 1.0 server implementations.",
author="Cody Pisto",
author_email="cody@hpcs.com",
@@ -26,9 +20,7 @@
"Programming Language :: C",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"],
- packages=["fastcgi"],
- #data_files=[("share/doc/python-fastcgi/example", ["example/test.fcgi"])],
+ packages=['fastcgi'],
ext_package='fastcgi',
- ext_modules=[c_ext],
- zip_safe=False,
- )
+ ext_modules=[Extension(name='fcgi', sources=['fastcgi/pyfcgi.c'], libraries=['fcgi'])],
+)
|