-
Notifications
You must be signed in to change notification settings - Fork 44
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
Don't import kiva/_version.py from setup.py #257
Conversation
Instead, compile()/exec() to avoid triggering kiva/__init__.py
Current coverage is 52.05% (diff: 100%)@@ master #257 diff @@
==========================================
Files 126 126
Lines 13176 13176
Methods 0 0
Messages 0 0
Branches 1943 1943
==========================================
Hits 6859 6859
Misses 5872 5872
Partials 445 445
|
raise ImportError("Unable to import git_revision. Try removing " | ||
"kiva/_version.py and the build directory " | ||
"before building.") | ||
git_revision, full_version = read_version_py('kiva/_version.py') |
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.
Probably need to be careful here:
- cross-platform path construction
- need to ensure that it works if
setup.py
is not in current working dir (ie. base off ofos.dirname(__file__)
).
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.
Good point. Done.
I've built the sdist from this branch on both 2.7 and 3.5. It should be good to go, right? |
Yep - sorry should have said it LGTM earlier. |
Better late than never! 😄 |
Fixes #254 and #253
six was already in the
__requires__
list in enable/init.py.