File: setup.py

package info (click to toggle)
py-xmlrpc 0.8.7-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 340 kB
  • ctags: 506
  • sloc: ansic: 5,321; python: 660; makefile: 102; sh: 14
file content (35 lines) | stat: -rwxr-xr-x 734 bytes parent folder | download
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
#!/usr/bin/python

from distutils.core import setup, Extension

import os
import sys

if sys.platform == 'win32':
	MACROS	= {
		'define'	: [('MSWINDOWS', None)],
		  }
	LIBS	= ['ws2_32']
else:
	MACROS	= {'define' : []}
	LIBS	= []

SRC	= map(lambda x: 'src/' + x,
	      filter(lambda x: x[-2:] == '.c',
		     os.listdir('src')))

setup(	name		= 'py-xmlrpc',
	version		= '0.8.7',
	description	= 'xmlrpc for Python',
	author		= 'Shilad Sen',
	author_email	= 'shilad.sen@sourcelight.com',
	license		= 'GNU Lesser General Public License',
	url		= "http://sourceforge.net/projects/py-xmlrpc/",
	py_modules	= ['xmlrpc'],
	ext_modules	= [Extension(
				'_xmlrpc',
				SRC,
				define_macros=MACROS['define'],
				libraries=LIBS,
				)],
	)