-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update setuptools in python3.6 #170
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
Comments
Looks like python should offer a new release with a working But I guess we'll have to work around it and fix it similar to how we keep pip up to date. 🤢 Edit: especially doing it in the same |
Hi, I also encountered the error while while installing python-memcached:
@yosifkit Would you accept a PR adding |
Given that the current version of setuptools is 28.8.8, released in November 2016, and the newest is 34.3.3, released a day ago, we definitely need a better way to keep it up to date. I had thought that the 3.6.1 bump would've included a newer setuptools 😢 Just adding the # line 62 https://github.com/docker-library/python/blob/32e920eb13714a9aeff2e016fb467901222d17b5/3.6/Dockerfile#L62
- && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
+ && pip3 install --no-cache-dir --upgrade --force-reinstall \
+ "pip==$PYTHON_PIP_VERSION" \
+ "setuptools==$PYTHON_SETUPTOOLS_VERSION" \
# of course there would need to be another ENV up by line 26 for this new version Would this be harmful to apply to all the versions of python (2.7, 3.3, 3.4, 3.5, and 3.6) or would they break? We currently have Dockerfile templates and having it only apply to 3.6 would complicate things. |
See also #186 (comment) where we're discussing something similar ( |
The setuptools included in the python3.6 version is broken and needs to be updated. Here is the specific issue pypa/setuptools#866
A quick workaround to overwrite the included one is to add the following run command to your Dockerfile.
The text was updated successfully, but these errors were encountered: