Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Forcing the version of setuptools is unsafe #492

Closed
jnewbigin opened this issue Apr 29, 2020 · 3 comments
Closed

Forcing the version of setuptools is unsafe #492

jnewbigin opened this issue Apr 29, 2020 · 3 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@jnewbigin
Copy link

pip-compile tells me Forcing the version of setuptools is unsafe

which is done here:

"setuptools>=40.3.0",

My distro provided python 3.6.9 comes with setuptools 36.5.0. As I understand, the setuptools version is matched to your python install and should not be upgraded with pip.

When I have a package which pulls in google-auto, it updates my setuptools causing other tools to start issuing warnings.

I wonder if you do indeed need the newer setuptools?

@busunkim96
Copy link
Contributor

Hi @jnewbigin,

It looks like we require that minimum version for the library to function properly. See #322

Do you have more background on why it is unsafe to upgrade setuptools? I wasn't able to find anything about it from a quick search.

Tthis PyPA tutorial specifically tells you to install a newer version of setuptools, so I would think it is safe?

@busunkim96 busunkim96 added the type: question Request for information or clarification. Not an issue. label Apr 29, 2020
@jnewbigin
Copy link
Author

Thanks for looking into this!
So it looks like the approach for now is that I should use --allow-unsafe with pip-compile. And if that flag is deprecated in the future, presumably it will issue a warning that the flag is no longer required.
In summary, versioning setuptools is required and it is actually safe.

John.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants