Skip to content

Fix enum34 requirement in setup.py for python 3 - #289

Closed
dzheng256 wants to merge 1 commit into
google:masterfrom
dzheng256:patch-1
Closed

Fix enum34 requirement in setup.py for python 3#289
dzheng256 wants to merge 1 commit into
google:masterfrom
dzheng256:patch-1

Conversation

@dzheng256

@dzheng256 dzheng256 commented Sep 29, 2020

Copy link
Copy Markdown
Contributor

The preferred way to specify a requirement that depends on python version is to do something like '<packagename>; python_version < "3.4"', not to do the sys.version check as is currently being done.

I am running into an issue where a wheel is built with py2 and the cached wheel metadata is used again when installing the package for python 3.7, thus incorrectly including enum34.

This same issue is addressed in the stack overflow responses here

@google-cla google-cla Bot added the cla: yes Author has signed CLA label Sep 29, 2020
@dzheng256 dzheng256 changed the title Fix enum34 requirement in setup.py Fix enum34 requirement in setup.py for python 3 Sep 29, 2020
@dbieber

dbieber commented Sep 29, 2020

Copy link
Copy Markdown
Collaborator

Thank you, we'll incorporate this change 👍 .

python-fire-bot pushed a commit that referenced this pull request Oct 5, 2020
7d100c1 by Daniel Zheng <dzheng256@gmail.com>

COPYBARA_INTEGRATE_REVIEW=#289 from dzheng256:patch-1 7d100c1
PiperOrigin-RevId: 335459087
Change-Id: Ifafd1ed3793604ed78b487189a0be908d699bd51
@dbieber

dbieber commented Oct 5, 2020

Copy link
Copy Markdown
Collaborator

Merged in 878b8d8

@dbieber dbieber closed this Oct 5, 2020
CherylMoonba added a commit to CherylMoonba/devices that referenced this pull request Jul 20, 2025
7d100c145a5a0afc44394e36c4c5c02afba288dc by Daniel Zheng <dzheng256@gmail.com>

COPYBARA_INTEGRATE_REVIEW=google/python-fire#289 from dzheng256:patch-1 7d100c145a5a0afc44394e36c4c5c02afba288dc
PiperOrigin-RevId: 335459087
Change-Id: Ifafd1ed3793604ed78b487189a0be908d699bd51
hwlegends pushed a commit to hwlegends/python-fire that referenced this pull request Aug 20, 2025
7d100c145a5a0afc44394e36c4c5c02afba288dc by Daniel Zheng <dzheng256@gmail.com>

COPYBARA_INTEGRATE_REVIEW=google/python-fire#289 from dzheng256:patch-1 7d100c145a5a0afc44394e36c4c5c02afba288dc
PiperOrigin-RevId: 335459087
Change-Id: Ifafd1ed3793604ed78b487189a0be908d699bd51
Hernandez19891 added a commit to Hernandez19891/Illumina that referenced this pull request Sep 15, 2025
7d100c145a5a0afc44394e36c4c5c02afba288dc by Daniel Zheng <dzheng256@gmail.com>

COPYBARA_INTEGRATE_REVIEW=google/python-fire#289 from dzheng256:patch-1 7d100c145a5a0afc44394e36c4c5c02afba288dc
PiperOrigin-RevId: 335459087
Change-Id: Ifafd1ed3793604ed78b487189a0be908d699bd51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Author has signed CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants