Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Maxin B. John
17 lines (13 sloc) 0.598 kB
from distutils.core import setup
from distutils.extension import Extension
import commands
def pkgconfig(*packages, **kw):
flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
for token in commands.getoutput("pkg-config --libs --cflags %s" % ' '.join(packages)).split():
kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
return kw
module1 = Extension('libmtag', libraries = ['mtag'], sources= ['libmtagmodule.c'])
setup (name = 'MTag',
version = '0.0.0',
description = 'The python-mtag package',
ext_modules = [module1])
Jump to Line
Something went wrong with that request. Please try again.