Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,4 @@ | |||
__version__ = "0.18-pre" | # __version__ defined in Shadow.py | ||
|
|
||
# Void cython.* directives (for case insensitive operating systems). | # Void cython.* directives (for case insensitive operating systems). | ||
from Cython.Shadow import * | from Cython.Shadow import * |
34f0f43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot install Cython master after this change. Creating a simple simluation of this problem in Bash as follows:
gives
AttributeError: 'module' object has no attribute '__version__'
If you look here you'll see in section 6.1 that "This imports all names except those beginning with an underscore (_)." "This" being statements of the form
from module import *
. So this change breaks installation becauseimports only those objects not beginning with
__
.Also the error message saying that one probably needs a pure Python version of Cython because a module attribute is not accessible seems a bit uninformative and may even seem like cause for alarm for the novice user.
A simple stack trace (which is given) is just as informative and probably wouldn't seem as confusing to a novice.
34f0f43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.