New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension instance gets multiple manifestations when cython is present #488

Closed
bb-migration opened this Issue Jan 24, 2016 · 5 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Jan 24, 2016

Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)


In this comment, @johnyf details an issue where the presence of Cython in the Python environment triggers a failure due to multiple manifestations of distutils.Extension or setuptools.Extension.


@bb-migration

This comment has been minimized.

bb-migration commented Jan 24, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


I believe the issue here is related to how setuptools.sandbox removes itself from sys.modules in order to allow another version to be used (such as when upgrading setuptools).

I suspect that because setuptools imports cython in buildext, it should also remove it when hiding setuptools and for the same reasons.

@bb-migration

This comment has been minimized.

bb-migration commented Jan 24, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Also hide Cython when hiding setuptools, as setuptools will have imported Cython and Cython references the distutils.Extension. Fixes #488.

@bb-migration

This comment has been minimized.

bb-migration commented Jan 24, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


@johnyf Would you please test with 19.6b1 and confirm it addresses the issue?

@bb-migration

This comment has been minimized.

bb-migration commented Jan 24, 2016

Original comment by johnyf (Bitbucket: johnyf, GitHub: johnyf):


As of 19.6b1 the issue appears to have been resolved, while it is present in 19.5.
Tested with Cython == 0.23.4, psutil == 3.4.2 and two packages:

  1. the minimal example described in 309
  2. dd with psutil in install_requires.

Thank you very much for the fix.

@bb-migration

This comment has been minimized.

bb-migration commented Jan 25, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Glad to hear it. 19.6 is released now.

jaraco added a commit that referenced this issue Apr 4, 2016

Also hide Cython when hiding setuptools, as setuptools will have impo…
…rted Cython and Cython references the distutils.Extension. Fixes #488.

benoit-pierre added a commit to benoit-pierre/plover that referenced this issue May 21, 2016

travis: fix possible OSX build failure
Building pyobjc-framework-Cocoa fails if Cython is installed, see:

pypa/setuptools#488

This is fixed by upgrading setuptools to >=19.6.

benoit-pierre added a commit to benoit-pierre/plover that referenced this issue May 21, 2016

travis: fix possible OSX build failure
Building pyobjc-framework-Cocoa fails if Cython is installed, see:

pypa/setuptools#488

This is fixed by upgrading setuptools to >=19.6.

benoit-pierre added a commit to benoit-pierre/plover that referenced this issue May 21, 2016

travis: fix possible OSX build failure
Building pyobjc-framework-Cocoa fails if Cython is installed, see:

pypa/setuptools#488

This is fixed by upgrading setuptools to >=19.6.

morinted added a commit to morinted/plover that referenced this issue Mar 2, 2017

travis: fix possible OSX build failure
Building pyobjc-framework-Cocoa fails if Cython is installed, see:

pypa/setuptools#488

This is fixed by upgrading setuptools to >=19.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment