Mercurial > ~astiob > upreckon > hgweb
changeset 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 | 45d4a9dc707b |
children | f8041e1e4d0d |
files | setup.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Fri Jun 03 20:22:08 2011 +0100 +++ b/setup.py Fri Jun 03 20:41:35 2011 +0100 @@ -21,6 +21,12 @@ if os.name == 'nt': scripts.append('upreckon/upreckon.cmd') +if os.name == 'posix': + ext_modules = [Extension('upreckon._unix', + sources=['upreckon/_unixmodule.cpp'])] +else: + ext_modules = [] + setup(name='upreckon', version='2.01.0', author='Oleg Oshmyan', @@ -52,8 +58,7 @@ 'Topic :: Software Development :: Testing', 'Topic :: Utilities', ), - ext_modules=[Extension('upreckon._unix', - sources=['upreckon/_unixmodule.cpp'])], + ext_modules=ext_modules, packages=['upreckon'], scripts=scripts, cmdclass={'build_ext': build_opt_ext},