aboutsummaryrefslogtreecommitdiff
blob: 8c7827921628f2a61964bfde557895ea21be45fb (plain)
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
#!/usr/bin/env python

import os
from distutils.core import setup, Extension

xattr = os.getenv('XTPAX')

if xattr != None:
	module1 = Extension(
		name='pax',
		sources = ['paxmodule.c'],
		libraries = ['elf', 'attr'],
		define_macros = [('XTPAX', None)]
	)
else:
	module1 = Extension(
		name='pax',
		sources = ['paxmodule.c'],
		libraries = ['elf'],
		undef_macros = ['XTPAX']
	)

setup(
	name = 'PaxPython',
	version = '2.0',
	author = 'Anthony G. Basile',
	author_email = 'blueness@gentoo.org',
	url = 'http://dev.gentoo.org/~blueness/elfix',
	description = 'This is bindings between paxctl and python',
	license = 'GPL-2',
	ext_modules = [module1]
)