Welcome to mirror list, hosted at ThFree Co, Russian Federation.

setup.py « syncmenu « osx « src - dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b20709f948522f7af5644eb217a82e9d9ce5ece (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
from distutils.core import setup, Extension
import commands


retval, output = commands.getstatusoutput("pkg-config --cflags gtk+-2.0 pygtk-2.0")
if retval != 0:
	print "Failed to find package details for gtk+-2.0"
	print
	print output
	sys.exit(1)
cflags = output.strip().split()
retval, output = commands.getstatusoutput("pkg-config --libs gtk+-2.0 pygtk-2.0")
if retval != 0:
	print "Failed to find package details for gtk+-2.0"
	print
	print output
	sys.exit(1)
libs = output.strip().split()


setup(name='syncmenu', version='0.2',
      author='James Newton', author_email='baron@codepunks.org',
      ext_modules=[
      	Extension('syncmenu', ['pysyncmenu.c', 'sync-menu.c'],
				  extra_link_args=libs + ['-framework', 'Carbon'],
				  extra_compile_args=['-Wall'] + cflags)
      ])