Remove setuptools usage. Since we are using Makefile to launch nosetests, no need to have integration in our setup, and that make tihngs easied for embed python.

This commit is contained in:
Mathieu Virbel 2011-02-02 22:36:05 +01:00
parent d2e2346e08
commit 7085864448
1 changed files with 3 additions and 12 deletions

View File

@ -1,8 +1,9 @@
from fnmatch import filter as fnfilter
from sys import platform, argv, modules
from sys import platform, argv
from os.path import join, dirname, realpath, sep, exists
from os import walk, environ
from setuptools import setup, Extension
from distutils.core import setup
from distutils.extension import Extension
# extract version (simulate doc generation, kivy will be not imported)
environ['KIVY_DOC_INCLUDE'] = '1'
@ -98,14 +99,6 @@ if 'sdist' in argv and have_cython:
# add cython core extension modules if cython is available
if have_cython:
cmdclass['build_ext'] = build_ext
# this is an hack to make setuptools works with Cython
# without this hack, cython is not executed, and we don't have C files at
# the end. More information can be found at
# http://mail.python.org/pipermail/distutils-sig/2007-September/008204.html
# The solution taken is http://pypi.python.org/pypi/setuptools_cython/
if 'setuptools.extension' in modules:
m = modules['setuptools.extension']
m.Extension.__dict__ = m._Extension.__dict__
else:
pyx_files = ['%s.c' % x[:-4] for x in pyx_files]
@ -199,8 +192,6 @@ setup(
'hardware-accelerated multitouch applications.',
ext_modules=ext_modules,
cmdclass=cmdclass,
setup_requires=['nose>=0.11'],
test_suite='nose.collector',
packages=[
'kivy',
'kivy.core',