Skip to content

fix imports for python 3#56

Merged
martindurant merged 3 commits intointake:masterfrom
djsutherland:py3-fixes
Oct 2, 2017
Merged

fix imports for python 3#56
martindurant merged 3 commits intointake:masterfrom
djsutherland:py3-fixes

Conversation

@djsutherland
Copy link
Copy Markdown
Contributor

#54 apparently wasn't tested on python 3; it tries to do some relative import stuff, which doesn't work. This fixes it.

I also noticed that setup.py uses install_requires but doesn't actually use setuptools.setup, so that line only does anything if you're installing with pip and not if you're using setup.py directly. I changed it to use setuptools if available.

@martindurant
Copy link
Copy Markdown
Member

martindurant commented Sep 24, 2017

Does this now need a from __future__ import for imports to work on py2?

@djsutherland
Copy link
Copy Markdown
Contributor Author

djsutherland commented Sep 24, 2017

Not in 2.7 (I tested). I think this syntax was introduced in 2.5, IIRC.

Edit: tested 2.6 and it works, too.

@martindurant
Copy link
Copy Markdown
Member

All looks ok to me - anyone else with comments?

@martindurant martindurant merged commit 82bf339 into intake:master Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants