8000 Fixes Python3.6 and enum34 by AndreMiras · Pull Request #1403 · kivy/python-for-android · GitHub
[go: up one dir, main page]

Skip to content

Fixes Python3.6 and enum34 #1403

8000 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

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

AndreMiras
Copy link
Member

Module enum34 should only be installed on Python < 3.4
Fixes host Python3 regression from ecd0bf6, the error was:

AttributeError: module 'enum' has no attribute 'IntFlag'

Module `enum34` should only be installed on Python < 3.4
Fixes host Python3 regression from ecd0bf6, the error was:
```
AttributeError: module 'enum' has no attribute 'IntFlag'
```
@AndreMiras
Copy link
Member Author

I wish I could verify that in a unit test, but can't seem to reproduce that when running from tox. And it's bit overkill to write an integration test for it because it would require updating our CI to run also on host Python3 😕
While we do want to do that at some point, it would make the suite run for even longer which we can't until we've addressed #1400

@@ -16,7 +16,8 @@
data_files = []


install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six', 'enum34']
install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six',
'enum34;python_version<"3.4"']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would indent this further, but no need to have that hold up fixing the install.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more 8000 .

True, well the linter (yes we have one 😄 ) didn't complain, but you're right I could have at least tried something like:

install_reqs = [
    'appdirs', 'colorama>=0.3.3', 'jinja2', 'six', 'enum34;python_version<"3.4"'
]

@inclement inclement merged commit 849f67f into kivy:master Oct 11, 2018
@AndreMiras AndreMiras deleted the feature/fix_python3.6_enum34 branch October 12, 2018 19:29
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
0