[Sqlalchemy-tickets] Issue #2986: setuptools has removed Feature (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
|
From: Mike B. <iss...@bi...> - 2014-03-06 18:04:06
|
New issue 2986: setuptools has removed Feature https://bitbucket.org/zzzeek/sqlalchemy/issue/2986/setuptools-has-removed-feature Mike Bayer: lets wait and see if there's another way to get this, otherwise we have to take the ``--without-cextensions`` flag out of the documentation. backport to 0.8, 0.7 ``` #!diff diff --git a/doc/build/changelog/changelog_07.rst b/doc/build/changelog/changelog_07.rst index da89bbd..14849fe 100644 --- a/doc/build/changelog/changelog_07.rst +++ b/doc/build/changelog/changelog_07.rst @@ -7,6 +7,15 @@ :version: 0.7.11 .. change:: + :tags: bug, general + :versions: 0.8.6, 0.9.4 + + Made a critical fix in the ``setup.py`` file due to the removal + of the ``setuptools.Feature`` extension. For the moment, + the ``--without-cextensions`` flag will not function with + the latest versions of setuptools. + + .. change:: :tags: bug, engine :tickets: 2851 :versions: 0.8.3, 0.9.0b1 diff --git a/setup.py b/setup.py index f682081..0b32522 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,13 @@ from distutils.command.build_ext import build_ext from distutils.errors import (CCompilerError, DistutilsExecError, DistutilsPlatformError) try: - from setuptools import setup, Extension, Feature + from setuptools import setup, Extension has_setuptools = True + + try: + from setuptools import Feature + except ImportError: + Feature = None except ImportError: has_setuptools = False from distutils.core import setup, Extension ``` |