Skip to content

replace get_config_var() with get_config_vars() in setup.py.#274

Merged
skvark merged 1 commit into
opencv:masterfrom
rockywhisper:setup_fix
Dec 30, 2019
Merged

replace get_config_var() with get_config_vars() in setup.py.#274
skvark merged 1 commit into
opencv:masterfrom
rockywhisper:setup_fix

Conversation

@rockywhisper

Copy link
Copy Markdown
Contributor

The get_config_var() is deprecated since Python3, and it causes a warning: warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning, 2)

If we change to get_config_vars().get("SO"), it would be compatible with both Python2 and Python3. So why not :-)

@skvark

skvark commented Dec 29, 2019

Copy link
Copy Markdown
Member

Thanks, I'll wait for the Travis builds to finish before merging (there were some issues with Travis cache so I had to restart the build).

@skvark skvark merged commit ac48881 into opencv:master Dec 30, 2019
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