Mercurial > ~astiob > upreckon > hgweb
view setup.py @ 150:006dce02752c
Added the testee configuration variable and the config.nativize_path function
The testee configuration variable stores the string or iterable of strings to
pass to subprocess.Popen except that the first/only string always follows the
POSIX pathname format or, if the native format is really needed, is prefixed
by slash-slash-colon (the same format is used in Boost.Filesystem).
config.nativize_path is now a part of the public API of the config module.
It converts a path in the format described above into the native format
and can be used in testconf if it needs to use paths other than testee[0].
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 03 Jun 2011 02:39:02 +0100 |
parents | d5b6708c1955 |
children | eb0866a11ba1 |
line wrap: on
line source
#! /usr/bin/env python try: from setuptools import setup, Extension from setuptools.command.build_ext import build_ext except ImportError: from distutils.core import setup, Extension from distutils.command.build_ext import build_ext from distutils.errors import CCompilerError from distutils import log import os class build_opt_ext(build_ext): def build_extension(self, ext): try: build_ext.build_extension(self, ext) except CCompilerError: log.warn("failed to build native extension %s (skipping)", ext.name) scripts = ['upreckon/upreckon'] if os.name == 'nt': scripts.append('upreckon/upreckon.cmd') setup(name='upreckon', version='2.01.0', author='Oleg Oshmyan', author_email='chortos@inbox.lv', url='http://chortos.selfip.net/~astiob/test.py/', #description='', #long_description='', download_url='https://bitbucket.org/astiob/upreckon/downloads', #platforms=(), #license='', classifiers=( 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: Freely Distributable', 'Natural Language :: English', 'Operating System :: Microsoft :: Windows', 'Operating System :: OS Independent', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2', #'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', 'Topic :: Software Development :: Testing', 'Topic :: Utilities', ), ext_modules=[Extension('upreckon._unix', sources=['upreckon/_unixmodule.cpp'])], packages=['upreckon'], scripts=scripts, cmdclass={'build_ext': build_opt_ext}, )