comparison setup.py @ 154:eb0866a11ba1

_unix is no longer compiled on non-UNIX systems
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 03 Jun 2011 20:41:35 +0100
parents d5b6708c1955
children fea8c7853a44 d7f4b051ad79
comparison
equal deleted inserted replaced
153:45d4a9dc707b 154:eb0866a11ba1
18 ext.name) 18 ext.name)
19 19
20 scripts = ['upreckon/upreckon'] 20 scripts = ['upreckon/upreckon']
21 if os.name == 'nt': 21 if os.name == 'nt':
22 scripts.append('upreckon/upreckon.cmd') 22 scripts.append('upreckon/upreckon.cmd')
23
24 if os.name == 'posix':
25 ext_modules = [Extension('upreckon._unix',
26 sources=['upreckon/_unixmodule.cpp'])]
27 else:
28 ext_modules = []
23 29
24 setup(name='upreckon', 30 setup(name='upreckon',
25 version='2.01.0', 31 version='2.01.0',
26 author='Oleg Oshmyan', 32 author='Oleg Oshmyan',
27 author_email='chortos@inbox.lv', 33 author_email='chortos@inbox.lv',
50 'Programming Language :: Python :: 3.1', 56 'Programming Language :: Python :: 3.1',
51 'Programming Language :: Python :: 3.2', 57 'Programming Language :: Python :: 3.2',
52 'Topic :: Software Development :: Testing', 58 'Topic :: Software Development :: Testing',
53 'Topic :: Utilities', 59 'Topic :: Utilities',
54 ), 60 ),
55 ext_modules=[Extension('upreckon._unix', 61 ext_modules=ext_modules,
56 sources=['upreckon/_unixmodule.cpp'])],
57 packages=['upreckon'], 62 packages=['upreckon'],
58 scripts=scripts, 63 scripts=scripts,
59 cmdclass={'build_ext': build_opt_ext}, 64 cmdclass={'build_ext': build_opt_ext},
60 ) 65 )