[Tutor] Percentage of installations without setuptools (Was if __name__=='__main__' ...)
Chris Warrick
kwpolska at gmail.com
Fri Aug 11 14:13:24 EDT 2017
On 11 August 2017 at 19:54, Mats Wichmann <mats at wichmann.us> wrote:
> On 08/11/2017 09:54 AM, Alan Gauld via Tutor wrote:
>> On 11/08/17 13:35, Thomas Güttler wrote:
>>
>>> I guess most python installations have setuptools.
>>
>> I guess so too, although I don't know.
>> Those that don't are probably in one of two categories
>> a) people who just downloaded Python and never installed
>> anything else
False since Python 3.4/2.7.9. ensurepip installs Python on every new
Python install.
> Most Linux distributions choose to make it a separate package. I have
> it (them - one for Py2 and one for Py3) installed everywhere, but I'd
> guess it's not a default install then.
>
> Fedora:
> python2-setuptools-36.2.0-1.fc26.noarch
> python3-setuptools-36.2.0-1.fc26.noarch
>
> Ubuntu:
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Architecture Description
> +++-=====================-============-============-=================================
> ii python-setuptools 33.1.1-1 all Python Distutils
> Enhancements
> ii python3-setuptools 33.1.1-1 all Python3 Distutils
> Enhancements
On Fedora, setuptools is mandatory:
package: python3-3.6.2-1.fc26.x86_64
[snip some unrelated stuff]
dependency: python3-pip
provider: python3-pip-9.0.1-9.fc26.noarch
dependency: python3-setuptools
provider: python3-setuptools-36.2.0-1.fc26.noarch
On other distributions, it usually isn’t, although many users will
eventually end up with a copy.
--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
More information about the Tutor
mailing list