Skip to content

Fixes Python3.6 and enum34#1403

Merged
inclement merged 1 commit into
kivy:masterfrom
AndreMiras:feature/fix_python3.6_enum34
Oct 11, 2018
Merged

Fixes Python3.6 and enum34#1403
inclement merged 1 commit into
kivy:masterfrom
AndreMiras:feature/fix_python3.6_enum34

Conversation

@AndreMiras

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread setup.py

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
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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