Mercurial > ~astiob > upreckon > hgweb
comparison setup.py @ 146:d5b6708c1955
Distutils support, reorganization and cleaning up
* Removed command-line options -t and -u.
* Reorganized code:
o all modules are now in package upreckon;
o TestCaseNotPassed and its descendants now live in a separate
module exceptions;
o load_problem now lives in module problem.
* Commented out mentions of command-line option -c in --help.
* Added a distutils-based setup.py.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sat, 28 May 2011 14:24:25 +0100 |
parents | |
children | eb0866a11ba1 |
comparison
equal
deleted
inserted
replaced
145:d2c266c8d820 | 146:d5b6708c1955 |
---|---|
1 #! /usr/bin/env python | |
2 try: | |
3 from setuptools import setup, Extension | |
4 from setuptools.command.build_ext import build_ext | |
5 except ImportError: | |
6 from distutils.core import setup, Extension | |
7 from distutils.command.build_ext import build_ext | |
8 from distutils.errors import CCompilerError | |
9 from distutils import log | |
10 import os | |
11 | |
12 class build_opt_ext(build_ext): | |
13 def build_extension(self, ext): | |
14 try: | |
15 build_ext.build_extension(self, ext) | |
16 except CCompilerError: | |
17 log.warn("failed to build native extension %s (skipping)", | |
18 ext.name) | |
19 | |
20 scripts = ['upreckon/upreckon'] | |
21 if os.name == 'nt': | |
22 scripts.append('upreckon/upreckon.cmd') | |
23 | |
24 setup(name='upreckon', | |
25 version='2.01.0', | |
26 author='Oleg Oshmyan', | |
27 author_email='chortos@inbox.lv', | |
28 url='http://chortos.selfip.net/~astiob/test.py/', | |
29 #description='', | |
30 #long_description='', | |
31 download_url='https://bitbucket.org/astiob/upreckon/downloads', | |
32 #platforms=(), | |
33 #license='', | |
34 classifiers=( | |
35 'Development Status :: 5 - Production/Stable', | |
36 'Environment :: Console', | |
37 'Intended Audience :: Developers', | |
38 'License :: Freely Distributable', | |
39 'Natural Language :: English', | |
40 'Operating System :: Microsoft :: Windows', | |
41 'Operating System :: OS Independent', | |
42 'Operating System :: POSIX', | |
43 'Programming Language :: Python', | |
44 'Programming Language :: Python :: 2', | |
45 #'Programming Language :: Python :: 2.5', | |
46 'Programming Language :: Python :: 2.6', | |
47 'Programming Language :: Python :: 2.7', | |
48 'Programming Language :: Python :: 3', | |
49 'Programming Language :: Python :: 3.0', | |
50 'Programming Language :: Python :: 3.1', | |
51 'Programming Language :: Python :: 3.2', | |
52 'Topic :: Software Development :: Testing', | |
53 'Topic :: Utilities', | |
54 ), | |
55 ext_modules=[Extension('upreckon._unix', | |
56 sources=['upreckon/_unixmodule.cpp'])], | |
57 packages=['upreckon'], | |
58 scripts=scripts, | |
59 cmdclass={'build_ext': build_opt_ext}, | |
60 ) |